summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2021-12-08 14:18:07 +0800
committerGitHub <noreply@github.com>2021-12-08 14:18:07 +0800
commit4cbe792562e69e76df07cfa4aa9c0c254b2dec7c (patch)
treec453ddc1c81a673c979220968ff68ced543eedaf /web_src
parenta6f961fba416e146f5da6cb18115d2f6251d4fe3 (diff)
downloadgitea-4cbe792562e69e76df07cfa4aa9c0c254b2dec7c.tar.gz
gitea-4cbe792562e69e76df07cfa4aa9c0c254b2dec7c.zip
Remove unnecessary `X-Remote` HTTP header in AJAX request (#17932)
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/features/repo-issue.js1
-rw-r--r--web_src/js/features/repo-projects.js6
2 files changed, 0 insertions, 7 deletions
diff --git a/web_src/js/features/repo-issue.js b/web_src/js/features/repo-issue.js
index 4f1365c1b2..4fc4b13cad 100644
--- a/web_src/js/features/repo-issue.js
+++ b/web_src/js/features/repo-issue.js
@@ -59,7 +59,6 @@ function updateDeadline(deadlineString) {
}),
headers: {
'X-Csrf-Token': csrfToken,
- 'X-Remote': true,
},
contentType: 'application/json',
type: 'POST',
diff --git a/web_src/js/features/repo-projects.js b/web_src/js/features/repo-projects.js
index 5c84d6dff1..986ada2956 100644
--- a/web_src/js/features/repo-projects.js
+++ b/web_src/js/features/repo-projects.js
@@ -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',