Allow edit requests to include credentials

This commit is contained in:
Magnus Hoff 2017-09-26 13:39:44 +02:00
parent 3c0186ea1a
commit f205de053a

View file

@ -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 + ")");