mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Add "processData: false" to all JSON data we send
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -119,6 +119,8 @@ function piholeChange(action, duration) {
|
||||
$.ajax({
|
||||
url: "/api/dns/blocking",
|
||||
method: "POST",
|
||||
dataType: "json",
|
||||
processData: false,
|
||||
data: JSON.stringify({
|
||||
blocking: action === "enable",
|
||||
timer: parseInt(duration, 10) > 0 ? parseInt(duration, 10) : null,
|
||||
|
||||
Reference in New Issue
Block a user