restore necessary xhr.withCredentials for WPD

master
Aevann 2023-07-01 19:34:47 +03:00
parent 2dde07bf0f
commit 8555e370be
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ function submit(form) {
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.withCredentials=true;
formData = new FormData(form); formData = new FormData(form);
formData.append("formkey", formkey()); formData.append("formkey", formkey());