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

ContentSecurityPolicy restriction when using with Next.js #112

Open
advantiot opened this issue Jul 14, 2022 · 1 comment
Open

ContentSecurityPolicy restriction when using with Next.js #112

advantiot opened this issue Jul 14, 2022 · 1 comment

Comments

@advantiot
Copy link

The default ContentSecurityPolicy for a Next.js app (from a starter template) prevents loading of scripts and images required for this component. I was able to overcome this by simply adding a wildcard to all policies but that is not an option in production. What would be the exact permissions required for this component?

@jmayergit
Copy link

You can do something like this

<meta httpEquiv="Content-Security-Policy" content={csp} />

And place the source from the console error in the csp variable

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

No branches or pull requests

2 participants