webcontainer-core icon indicating copy to clipboard operation
webcontainer-core copied to clipboard

Unable to run Embedded Project: Looks like this project is being embedded without proper isolation headers.

Open singodiyashubham87 opened this issue 10 months ago • 0 comments

Describe the bug

Problem Description

I can't see the preview of the code while trying to embed stack blitz. It says that the issue is related to cross-origin isolation headers, but I highly doubt this is outside our control. I've tried every way, made by the application crossOriginIsolated too but still, It shows the same error.

Steps to Reproduce

  1. Open this Stackblitz sandbox: https://stackblitz.com/edit/sdk-create-project-with-npm-ts-lpsajdai?file=index.ts
  2. Let it embed & you'll see this kind of screen in the preview: Image

Please help me resolve this issue.

Link to the blitz that caused the error

https://stackblitz.com/edit/sdk-create-project-with-npm-ts-lpsajdai?file=index.ts

Steps to reproduce

  1. Open this Stackblitz sandbox: https://stackblitz.com/edit/sdk-create-project-with-npm-ts-lpsajdai?file=index.ts
  2. Let it embed & you'll see the error in preview

Expected behavior

It should show the preview instead of the isolation header error

Parity with Local

Screenshots

Image

Platform

  • OS: Linux
  • Browser: Chrome
  • Version: 133.1

Additional context

No response

singodiyashubham87 avatar Feb 19 '25 16:02 singodiyashubham87