You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to run Embedded Project
Looks like this project is being embedded without proper isolation headers.
[Read more about browser support for embedded projects](https://developer.stackblitz.com/platform/webcontainers/browser-support#embedding)
We tried to add headers like credentialless of cross-origin isolation but it didnt work.
@SamVerschueren Unfortunately, adding corp=1 as a query param hasn't worked in my testing (running in Fedora 43, Chrome 148.0.7778.178):
Same outcome whether or not I serve the top-level page with the two headers detailed in the comment above (confirmed the headers are present and correct).
Funnily enough, I just tested this in Firefox 151.0.1 and it works a treat, while Chrome, Chromium and Edge all still were unable to load the preview due to lacking proper isolation headers.
In my use case, we're likely to go with a different solution without Stackblitz embeds in the end (came across this while trying to address a different problem and seeing if Stackblitz embeds would be the answer), but hopefully this might help others who do actually need them.
However, the SDK's embedProject() uses the /run endpoint instead of /edit/, and /run does not serve the same cross-origin isolation headers that /edit/ does when corp=1 is present.
The /run endpoint (used by sdk.embedProject()) does not serve these headers, even with corp=1 in the URL. That's why crossOriginIsolated: true in the SDK doesn't work in Chromium — the iframe content itself isn't cross-origin isolated.
Firefox is more lenient about propagating crossOriginIsolated into iframes with COEP: credentialless on the parent, which is why it works there but not in Chrome/Chromium/Edge.
@SamVerschueren I have same error. I tried to add corp=1 to the embed URL and allow="cross-origin-isolated" attribute to iframe, but nothing works. There's a problem with fetching https://json.schemastore.org/package and https://json.schemastore.org/prettierrc requests.
Yes, I believe you can ignore it. I think they get loaded in order to get some code completion in package.json for known attributes. If they fail to load, you don't get auto completion, but that's fine. It does not prevent it from running.
Yes, I believe you can ignore it. I think they get loaded in order to get some code completion in package.json for known attributes. If they fail to load, you don't get auto completion, but that's fine. It does not prevent it from running.
It's strange, 'cause I see that it may prevent loading a nested StackBlitz browser's example. I don't see any other purposes for this issue
We hit this issue when using the legacy, WebPack-based Angular dev-server in a webcontainer, and switching to the application builder also added the Cross-Origin-Resource-Policy header necessary to work in the webcontainer on StackBlitz.
Our case was using openProject and not embedded projects, but adding the comment in case it helps others who encounter this issue.
Activity
mao-sz commentedon May 27, 2026
@SamVerschueren Unfortunately, adding
corp=1as a query param hasn't worked in my testing (running in Fedora 43, Chrome 148.0.7778.178):Same outcome whether or not I serve the top-level page with the two headers detailed in the comment above (confirmed the headers are present and correct).
SamVerschueren commentedon May 28, 2026
@mao-sz do you happen to have a public URL you can share so I can take a look myself?
mao-sz commentedon May 28, 2026
@SamVerschueren was testing in a larger codebase with more setup required so here's a minimum reproducible: https://github.com/mao-sz/stackblitz-embed-isolation-error
Funnily enough, I just tested this in Firefox 151.0.1 and it works a treat, while Chrome, Chromium and Edge all still were unable to load the preview due to lacking proper isolation headers.
In my use case, we're likely to go with a different solution without Stackblitz embeds in the end (came across this while trying to address a different problem and seeing if Stackblitz embeds would be the answer), but hopefully this might help others who do actually need them.
SamVerschueren commentedon May 28, 2026
I found the reason. You need to allow cross origin isolation inside the iframe. I'll update my other post where I explain which headers to add.
mao-sz commentedon May 28, 2026
Ah, that makes sense, nice. Can confirm it works in my other testing. Hopefully this'll help the others who need this feature 👍
sevenzing commentedon Jun 1, 2026
@SamVerschueren I failed to solve this issue using sdk
here is the link to preview of my PR where I added
crossOriginIsolated: trueand 2 headers described abovehttps://ensnodeio-git-ll-stackblitz-fix-issue-2100-namehash.vercel.app/docs/integrate/integration-options/enskit/example
I also noted that in firefox this urls works fine! So it doesnt work in Chrome on my side.
here is PR itself where I'm trying to fix the issue: https://github.com/namehash/ensnode/pull/2234/changes
sevenzing commentedon Jun 1, 2026
@SamVerschueren I dug deeper with AI agent and probably found the root cause.
The raw iframe approach with
/edit/works perfectly in Chrome, so If I use this iframe in our project it works perfect!However, the SDK's
embedProject()uses the/runendpoint instead of/edit/, and/rundoes not serve the samecross-originisolation headers that/edit/does whencorp=1is present.The /edit/ endpoint with corp=1 responds with:
The
/runendpoint (used bysdk.embedProject()) does not serve these headers, even withcorp=1in the URL. That's whycrossOriginIsolated: truein the SDK doesn't work in Chromium — the iframe content itself isn't cross-origin isolated.Firefox is more lenient about propagating
crossOriginIsolatedintoiframeswithCOEP: credentiallesson the parent, which is why it works there but not in Chrome/Chromium/Edge.SamVerschueren commentedon Jun 2, 2026
@sevenzing It does look like the
runrequest returns the correct headers, no?However, in the
Application > Frames > runit does not show it as cross origin isolated 🤔 .Just to be sure, you are using the latest stackblitz sdk version? I believe it's 1.11.0?
alexovn commentedon Jun 13, 2026
@SamVerschueren I have same error. I tried to add
corp=1to the embed URL andallow="cross-origin-isolated"attribute to iframe, but nothing works. There's a problem with fetchinghttps://json.schemastore.org/packageandhttps://json.schemastore.org/prettierrcrequests.sevenzing commentedon Jun 17, 2026
@SamVerschueren yes, I'm using latest 1.11.0
Updates from my side:
/run/endpoint, this is strange:Application > Frames > runBut now when I paste this iframe I also get
Unable to run Embedded Project, mysterioussevenzing commentedon Jun 25, 2026
@SamVerschueren 👀
SamVerschueren commentedon Jul 1, 2026
@sevenzing I don't see the
corp=1flag in the run endpoint you are calling? Am I missing something here? I also don't see the query param in the requests made on https://ensnode.io/docs/integrate/integration-options/enskit/example.@alexovn The failures on schemastore is not something we can do, it's because schemastore.org doesn't serve the correct headers.
Sorry about the inconvenience here. I'm juggling multiple things.
SamVerschueren commentedon Jul 1, 2026
@sevenzing I think I found the root cause. I'll let you know when I released a new version of the SDK.
SamVerschueren commentedon Jul 2, 2026
@sevenzing Can you update to the latest
@stackblitz/sdkversion1.11.1and test again?alexovn commentedon Jul 2, 2026
Okay, I got it. But can we ignore schemastore.org? Otherwise, it looks like no example that has been embedded will work
SamVerschueren commentedon Jul 3, 2026
Yes, I believe you can ignore it. I think they get loaded in order to get some code completion in
package.jsonfor known attributes. If they fail to load, you don't get auto completion, but that's fine. It does not prevent it from running.alexovn commentedon Jul 3, 2026
It's strange, 'cause I see that it may prevent loading a nested StackBlitz browser's example. I don't see any other purposes for this issue
johnhwhite commentedon Jul 14, 2026
We hit this issue when using the legacy, WebPack-based Angular dev-server in a webcontainer, and switching to the application builder also added the
Cross-Origin-Resource-Policyheader necessary to work in the webcontainer on StackBlitz.Our case was using
openProjectand not embedded projects, but adding the comment in case it helps others who encounter this issue.fix(components/docs-tools): code examples in StackBlitz WebContainer …
chore: release 14.6.2 (#4518)
fix(components/docs-tools): code examples in StackBlitz WebContainer …
chore: release 15.0.0-alpha.1 (#4480)
banzor commentedon Sep 3, 2026
We are experiencing this same issue. I tried adding the headers to our host page and adding the attributes to the iframe tag. Nothing is solving it.
I have embedded a few different stackblitz samples in tutorials on our documentation site. Recently, they have become unable to render.
See embed here:
https://developer.mescius.com/spreadjs/docs/tutorials/how-to-import-and-export-excel-xlsx-using-javascript
Sample here:
https://stackblitz.com/edit/spreadjs-import-export-excel
Error message:
Unable to run Embedded Project
Looks like this project is being embedded without proper isolation headers.
Using iframe to embed. These have worked for a long time but broke suddenly.