mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-21 23:02:41 +01:00
Remove unnecessary X-Remote
HTTP header in AJAX request (#17932)
This commit is contained in:
parent
a6f961fba4
commit
4cbe792562
2 changed files with 0 additions and 7 deletions
|
@ -59,7 +59,6 @@ function updateDeadline(deadlineString) {
|
|||
}),
|
||||
headers: {
|
||||
'X-Csrf-Token': csrfToken,
|
||||
'X-Remote': true,
|
||||
},
|
||||
contentType: 'application/json',
|
||||
type: 'POST',
|
||||
|
|
|
@ -25,7 +25,6 @@ async function initRepoProjectSortable() {
|
|||
data: JSON.stringify({sorting: i, color: rgbToHex($(column).css('backgroundColor'))}),
|
||||
headers: {
|
||||
'X-Csrf-Token': csrfToken,
|
||||
'X-Remote': true,
|
||||
},
|
||||
contentType: 'application/json',
|
||||
method: 'PUT',
|
||||
|
@ -47,7 +46,6 @@ async function initRepoProjectSortable() {
|
|||
$.ajax(`${url}/${issue}`, {
|
||||
headers: {
|
||||
'X-Csrf-Token': csrfToken,
|
||||
'X-Remote': true,
|
||||
},
|
||||
contentType: 'application/json',
|
||||
type: 'POST',
|
||||
|
@ -90,7 +88,6 @@ export default function initRepoProject() {
|
|||
data: JSON.stringify({title: projectTitleInput.val(), color: projectColorInput.val()}),
|
||||
headers: {
|
||||
'X-Csrf-Token': csrfToken,
|
||||
'X-Remote': true,
|
||||
},
|
||||
contentType: 'application/json',
|
||||
method: 'PUT',
|
||||
|
@ -114,7 +111,6 @@ export default function initRepoProject() {
|
|||
url: $(this).data('url'),
|
||||
headers: {
|
||||
'X-Csrf-Token': csrfToken,
|
||||
'X-Remote': true,
|
||||
},
|
||||
contentType: 'application/json',
|
||||
});
|
||||
|
@ -130,7 +126,6 @@ export default function initRepoProject() {
|
|||
url: $(this).data('url'),
|
||||
headers: {
|
||||
'X-Csrf-Token': csrfToken,
|
||||
'X-Remote': true,
|
||||
},
|
||||
contentType: 'application/json',
|
||||
method: 'DELETE',
|
||||
|
@ -151,7 +146,6 @@ export default function initRepoProject() {
|
|||
data: JSON.stringify({title: boardTitle.val(), color: projectColorInput.val()}),
|
||||
headers: {
|
||||
'X-Csrf-Token': csrfToken,
|
||||
'X-Remote': true,
|
||||
},
|
||||
contentType: 'application/json',
|
||||
method: 'POST',
|
||||
|
|
Loading…
Reference in a new issue