fix CORS requests failing

This commit is contained in:
Bruno Windels 2019-09-15 12:23:08 +02:00
parent e372914e7e
commit 5a90b4673b

View File

@ -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) {