-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
always fallback legacy build when CSP #5919
Comments
Did you find any walkaround for this? |
No, I allow |
I open a PR about this. #6535 |
Do we have any release plans? |
We will release it in tandem with vite 2.9, hopefully this week |
Describe the bug
We use this line for detecting browser support.
vite/packages/plugin-legacy/index.js
Line 21 in 08a1ec7
but
new Function
code doesn't allow when CSP defaults.So the browser will always fallback.
CSP hash can't ignore
unsafe-eval
.Reproduction
HTTP server header
And Using
@vite/plugin-legacy
Project: https://github.com/yoyo930021/vite-legacy-csp-bug
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: