Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cross-origin isolation for preview #214

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

tomoam
Copy link
Contributor

@tomoam tomoam commented Feb 15, 2023

fixes #213

According to Vite's documentation, it seems that it is possible to add headers with the preview.headers option, but it doesn't seem to work. I fix it in this workaround (the issue is as of Vite 3, but it is still valid in the current Vite 4).

@vercel
Copy link

vercel bot commented Feb 15, 2023

@tomoam is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@Rich-Harris Rich-Harris merged commit e4db4c2 into sveltejs:main Feb 20, 2023
@Rich-Harris
Copy link
Member

thank you!

@tomoam tomoam deleted the fix-pnpm-preview branch February 21, 2023 06:21
@tomoam tomoam mentioned this pull request Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Webcontainer does not run when "pnpm preview --host", but it works when "pnpm dev --host".
2 participants