mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
fix CORS requests failing
This commit is contained in:
parent
e372914e7e
commit
5a90b4673b
@ -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 New Issue
Block a user