We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
nuxt-security: 1.0.0-rc.4 nuxt: 3.7.4
nuxt.config.ts
export default defineNuxtConfig({ ... modules: ['nuxt-security'], security: { headers: { crossOriginOpenerPolicy: false, crossOriginEmbedderPolicy: false, contentSecurityPolicy: false, }, }, ... });
This warning shouldn't be printed in the browser console because contentSecurityPolicy is set to false.
contentSecurityPolicy
Got: Unrecognized Content-Security-Policy directive 'undefined'. in browser console.
Unrecognized Content-Security-Policy directive 'undefined'.
The text was updated successfully, but these errors were encountered:
@marcaureln You're right Also related: #292
PR #304 will fix For now you can set contentSecurityPolicy: '' to avoid the console warning
contentSecurityPolicy: ''
Sorry, something went wrong.
Thanks @vejja !
The empty string didn't fix it. But tried ' ' (single space) and the warning vanish. Can't wait to use the upcoming release.
' '
@vejja Thanks guys for finding and solving it!
Aiming to release it with 1.0.0-rc.5 soon :)
Successfully merging a pull request may close this issue.
Version
nuxt-security: 1.0.0-rc.4
nuxt: 3.7.4
Steps to reproduce
nuxt.config.ts
What is Expected?
This warning shouldn't be printed in the browser console because
contentSecurityPolicy
is set to false.What is actually happening?
Got:
Unrecognized Content-Security-Policy directive 'undefined'.
in browser console.The text was updated successfully, but these errors were encountered: