From f205de053a964ea5afb960bce560db26a946c08d Mon Sep 17 00:00:00 2001 From: Magnus Hoff Date: Tue, 26 Sep 2017 13:39:44 +0200 Subject: [PATCH] Allow edit requests to include credentials --- assets/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/script.js b/assets/script.js index b72c243..eebe469 100644 --- a/assets/script.js +++ b/assets/script.js @@ -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 + ")");