mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
Explicitly set contentType to avoid promotion to jsonp
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -306,6 +306,7 @@ function addGroup() {
|
||||
method: "post",
|
||||
dataType: "json",
|
||||
processData: false,
|
||||
contentType: "application/json; charset=utf-8",
|
||||
data: JSON.stringify({
|
||||
name: names,
|
||||
comment: comment,
|
||||
@@ -373,6 +374,7 @@ function editGroup() {
|
||||
method: "put",
|
||||
dataType: "json",
|
||||
processData: false,
|
||||
contentType: "application/json; charset=utf-8",
|
||||
data: JSON.stringify({
|
||||
name: name,
|
||||
comment: comment,
|
||||
|
||||
Reference in New Issue
Block a user