From 3a298f15864f5c3f1f20f2284dbfd11a50d42341 Mon Sep 17 00:00:00 2001 From: Eduard Ruzga Date: Sun, 12 Jan 2025 18:28:06 +0200 Subject: [PATCH] fix: cors issues from preview fixed by changing embedder policies (#1056) --- app/lib/webcontainer/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/lib/webcontainer/index.ts b/app/lib/webcontainer/index.ts index e35b6323..cd46d3d5 100644 --- a/app/lib/webcontainer/index.ts +++ b/app/lib/webcontainer/index.ts @@ -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 });