Eduards commited on
Commit
3a298f1
·
unverified ·
1 Parent(s): 6aaff63

fix: cors issues from preview fixed by changing embedder policies (#1056)

Browse files
Files changed (1) hide show
  1. app/lib/webcontainer/index.ts +1 -0
app/lib/webcontainer/index.ts CHANGED
@@ -24,6 +24,7 @@ if (!import.meta.env.SSR) {
24
  Promise.resolve()
25
  .then(() => {
26
  return WebContainer.boot({
 
27
  workdirName: WORK_DIR_NAME,
28
  forwardPreviewErrors: true, // Enable error forwarding from iframes
29
  });
 
24
  Promise.resolve()
25
  .then(() => {
26
  return WebContainer.boot({
27
+ coep: 'credentialless',
28
  workdirName: WORK_DIR_NAME,
29
  forwardPreviewErrors: true, // Enable error forwarding from iframes
30
  });