mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
fix CORS requests failing
This commit is contained in:
parent
e372914e7e
commit
5a90b4673b
@ -67,7 +67,11 @@ export default class HomeServerApi {
|
|||||||
method,
|
method,
|
||||||
headers,
|
headers,
|
||||||
body: bodyString,
|
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) => {
|
promise = promise.then(async (response) => {
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
|
Loading…
Reference in New Issue
Block a user