Skip to content

Commit

Permalink
Merge pull request #877 from mikeirvingweb/main
Browse files Browse the repository at this point in the history
fix: pass same-origin credentials - fixes #875
  • Loading branch information
jeromelaban authored Jul 29, 2024
2 parents 9c669e5 + 4fcd249 commit 972018d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uno.Wasm.Bootstrap/ts/Uno/WebAssembly/Bootstrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ namespace Uno.WebAssembly.Bootstrap {
private getFetchInit(url: string): RequestInit {
const fileName = url.substring(url.lastIndexOf("/") + 1);

const init: RequestInit = { credentials: "omit" };
const init: RequestInit = { credentials: "same-origin" };

if (this._unoConfig.files_integrity.hasOwnProperty(fileName)) {
init.integrity = this._unoConfig.files_integrity[fileName];
Expand Down Expand Up @@ -567,7 +567,7 @@ namespace Uno.WebAssembly.Bootstrap {
}
}

return fetch(asset);
return fetch(asset, {credentials: "same-origin"});
}
}

Expand Down

0 comments on commit 972018d

Please sign in to comment.