Skip to content

Commit 4cbe792

Browse files
authoredDec 8, 2021
Remove unnecessary X-Remote HTTP header in AJAX request (#17932)
1 parent a6f961f commit 4cbe792

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed
 

‎web_src/js/features/repo-issue.js

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ function updateDeadline(deadlineString) {
5959
}),
6060
headers: {
6161
'X-Csrf-Token': csrfToken,
62-
'X-Remote': true,
6362
},
6463
contentType: 'application/json',
6564
type: 'POST',

‎web_src/js/features/repo-projects.js

-6
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ async function initRepoProjectSortable() {
2525
data: JSON.stringify({sorting: i, color: rgbToHex($(column).css('backgroundColor'))}),
2626
headers: {
2727
'X-Csrf-Token': csrfToken,
28-
'X-Remote': true,
2928
},
3029
contentType: 'application/json',
3130
method: 'PUT',
@@ -47,7 +46,6 @@ async function initRepoProjectSortable() {
4746
$.ajax(`${url}/${issue}`, {
4847
headers: {
4948
'X-Csrf-Token': csrfToken,
50-
'X-Remote': true,
5149
},
5250
contentType: 'application/json',
5351
type: 'POST',
@@ -90,7 +88,6 @@ export default function initRepoProject() {
9088
data: JSON.stringify({title: projectTitleInput.val(), color: projectColorInput.val()}),
9189
headers: {
9290
'X-Csrf-Token': csrfToken,
93-
'X-Remote': true,
9491
},
9592
contentType: 'application/json',
9693
method: 'PUT',
@@ -114,7 +111,6 @@ export default function initRepoProject() {
114111
url: $(this).data('url'),
115112
headers: {
116113
'X-Csrf-Token': csrfToken,
117-
'X-Remote': true,
118114
},
119115
contentType: 'application/json',
120116
});
@@ -130,7 +126,6 @@ export default function initRepoProject() {
130126
url: $(this).data('url'),
131127
headers: {
132128
'X-Csrf-Token': csrfToken,
133-
'X-Remote': true,
134129
},
135130
contentType: 'application/json',
136131
method: 'DELETE',
@@ -151,7 +146,6 @@ export default function initRepoProject() {
151146
data: JSON.stringify({title: boardTitle.val(), color: projectColorInput.val()}),
152147
headers: {
153148
'X-Csrf-Token': csrfToken,
154-
'X-Remote': true,
155149
},
156150
contentType: 'application/json',
157151
method: 'POST',

0 commit comments

Comments
 (0)
Please sign in to comment.