mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
Explicitly set contentType to avoid promotion to jsonp
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -298,6 +298,7 @@ $("#loggingButton").confirm({
|
||||
type: "PATCH",
|
||||
dataType: "json",
|
||||
processData: false,
|
||||
contentType: "application/json; charset=utf-8",
|
||||
data: JSON.stringify(data),
|
||||
})
|
||||
.done(function (data) {
|
||||
|
||||
Reference in New Issue
Block a user