Skip to content

Commit

Permalink
fix: cors issues from preview fixed by changing embedder policies (#1056
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wonderwhy-er authored Jan 12, 2025
1 parent 6aaff63 commit 3a298f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/lib/webcontainer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if (!import.meta.env.SSR) {
Promise.resolve()
.then(() => {
return WebContainer.boot({
coep: 'credentialless',
workdirName: WORK_DIR_NAME,
forwardPreviewErrors: true, // Enable error forwarding from iframes
});
Expand Down

0 comments on commit 3a298f1

Please sign in to comment.