fix: cors issues from preview fixed by changing embedder policies (#1056)
Some checks are pending
Docker Publish / docker-build-publish (push) Waiting to run
Update Stable Branch / prepare-release (push) Waiting to run

This commit is contained in:
Eduard Ruzga 2025-01-12 18:28:06 +02:00 committed by GitHub
parent 6aaff63ca7
commit 3a298f1586
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,6 +24,7 @@ if (!import.meta.env.SSR) {
Promise.resolve() Promise.resolve()
.then(() => { .then(() => {
return WebContainer.boot({ return WebContainer.boot({
coep: 'credentialless',
workdirName: WORK_DIR_NAME, workdirName: WORK_DIR_NAME,
forwardPreviewErrors: true, // Enable error forwarding from iframes forwardPreviewErrors: true, // Enable error forwarding from iframes
}); });