Skip to content

Commit

Permalink
use credentialless header to allow candid UI to load d3
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Sep 14, 2024
1 parent ca55f47 commit 8125a4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/.ic-assets.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"match": "**/*",
"headers": {
"Cross-Origin-Embedder-Policy": "require-corp",
"Cross-Origin-Embedder-Policy": "credentialless",
"Cross-Origin-Opener-Policy": "same-origin",
"Content-Security-Policy": "frame-src *; frame-ancestors 'self'"
}
Expand Down
2 changes: 1 addition & 1 deletion src/webcontainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class Container {

async init() {
if (!this.container) {
this.container = await WebContainer.boot();
this.container = await WebContainer.boot({ coep: "credentialless" });
}
return this.container;
}
Expand Down

0 comments on commit 8125a4f

Please sign in to comment.