Allow edit requests to include credentials
This commit is contained in:
parent
3c0186ea1a
commit
f205de053a
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ function openEditor() {
|
||||||
"Content-Type": "application/x-www-form-urlencoded"
|
"Content-Type": "application/x-www-form-urlencoded"
|
||||||
},
|
},
|
||||||
body: body,
|
body: body,
|
||||||
|
credentials: "same-origin",
|
||||||
}
|
}
|
||||||
).then(response => {
|
).then(response => {
|
||||||
if (!response.ok) throw new Error("Unexpected status code (" + response.status + ")");
|
if (!response.ok) throw new Error("Unexpected status code (" + response.status + ")");
|
||||||
|
|
Loading…
Reference in a new issue