mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 10:48:26 +00:00
Add "processData: false" to all JSON data we send
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -318,6 +318,8 @@ function setTOTPSecret(secret) {
|
||||
$.ajax({
|
||||
url: "/api/config",
|
||||
type: "PATCH",
|
||||
dataType: "json",
|
||||
processData: false,
|
||||
data: JSON.stringify({ config: { webserver: { api: { totp_secret: secret } } } }),
|
||||
contentType: "application/json",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user