forked from mystiq/hydrogen-web
fix CORS requests failing
This commit is contained in:
parent
e372914e7e
commit
5a90b4673b
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue