mirror of
https://github.com/stackblitz/bolt.new
synced 2025-06-26 18:17:50 +00:00
fix: cors issues
fixed cors by adding coep headless line to the webcontainer
This commit is contained in:
commit
f095d76593
@ -22,7 +22,11 @@ if (!import.meta.env.SSR) {
|
|||||||
import.meta.hot?.data.webcontainer ??
|
import.meta.hot?.data.webcontainer ??
|
||||||
Promise.resolve()
|
Promise.resolve()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return WebContainer.boot({ workdirName: WORK_DIR_NAME });
|
return WebContainer.boot({
|
||||||
|
coep: 'credentialless',
|
||||||
|
workdirName: WORK_DIR_NAME,
|
||||||
|
forwardPreviewErrors: true, // Enable error forwarding from iframes
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.then((webcontainer) => {
|
.then((webcontainer) => {
|
||||||
webcontainerContext.loaded = true;
|
webcontainerContext.loaded = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user