-
Notifications
You must be signed in to change notification settings - Fork 0
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
[BUG]: Error in browser console: report-only Content Security Policy '' was delivered via a <meta> element, which is disallowed. #5
Comments
Update: was able to remove the cspPlugin({
policy: {
...
},
processFn: [
(ctx, parsedHeaders) => {
delete parsedHeaders['Content-Security-Policy-Report-Only']; // <-- remove from parsedHeaders
},
],
}) Not sure if I like it, but it works 😀 |
🎉 This issue has been resolved in version 1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@josh-hemphill Thank you so much for working on an update so fast! Appreciate it 😊 However, when I updated
|
addresses #5#issuecomment-1133634972
## [1.1.1](v1.1.0...v1.1.1) (2022-05-21) ### Bug Fixes * 🐛 `css-tree` imports esm ([1e9528a](1e9528a)), closes [#5](#5) [#issuecomment-1133634972](https://github.com/josh-hemphill/vite-plugin-csp/issues/issuecomment-1133634972)
It should be fixed now. Let me know if you run into issues |
Perfect! Works well now. Thank you 😊 |
The following error is showing up in the browser when using
vite-plugin-csp
:Is there a way to remove the Content-Security-Policy-Report-Only meta tag from the page?
Thanks
The text was updated successfully, but these errors were encountered: