Explicitly set contentType to avoid promotion to jsonp

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-11-18 12:53:44 +01:00
parent 69f838f7a6
commit bc1c6bc117
9 changed files with 17 additions and 5 deletions

View File

@@ -523,6 +523,7 @@ function addList(event) {
method: "post",
dataType: "json",
processData: false,
contentType: "application/json; charset=utf-8",
data: JSON.stringify({ address: addresses, comment: comment, type: type }),
success: function (data) {
utils.enableAll();
@@ -591,6 +592,7 @@ function editList() {
method: "put",
dataType: "json",
processData: false,
contentType: "application/json; charset=utf-8",
data: JSON.stringify({
groups: groups,
comment: comment,