From 5a90b4673b0484167f5a98688ffad8520b9474ad Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Sun, 15 Sep 2019 12:23:08 +0200 Subject: [PATCH] fix CORS requests failing --- src/matrix/hs-api.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/matrix/hs-api.js b/src/matrix/hs-api.js index 0dd1e225..2e9bedbe 100644 --- a/src/matrix/hs-api.js +++ b/src/matrix/hs-api.js @@ -67,7 +67,11 @@ export default class HomeServerApi { method, headers, body: bodyString, - signal: controller && controller.signal + signal: controller && controller.signal, + mode: "cors", + credentials: "omit", + referrer: "no-referrer", + cache: "no-cache", }); promise = promise.then(async (response) => { if (response.ok) {