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"
},
body: body,
credentials: "same-origin",
}
).then(response => {
if (!response.ok) throw new Error("Unexpected status code (" + response.status + ")");