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

Content Security Policy Implementation #1911

Open
LovishPrajapati opened this issue Apr 15, 2023 · 1 comment
Open

Content Security Policy Implementation #1911

LovishPrajapati opened this issue Apr 15, 2023 · 1 comment

Comments

@LovishPrajapati
Copy link

❓Question

Hey, Can anyone tell me how to implement Content Security Policy in a razzle app using loadable components?
I have tried adding helmet middleware for CSP, but it sometimes work and sometime don't. On normal load of site browser does follow policies but as soon as I hard reload the browser it does not. Can anyone help me here???

@dmitryshelomanov
Copy link

You no need to implement CSP for static assets, its only for doc

You can use helmet middleware for express or create own header handler

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