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

CSP Blocker on Nginx #159

Open
arslan-bodytrak opened this issue Apr 24, 2024 · 0 comments
Open

CSP Blocker on Nginx #159

arslan-bodytrak opened this issue Apr 24, 2024 · 0 comments

Comments

@arslan-bodytrak
Copy link

In our React application, we're integrating the HereMap API. However, due to security concerns, we've avoided using "unsafe-inline" in our Nginx configuration. Instead, we opted for SHA-256 to permit all external URLs. Even after adding the SHA-256 hash to our nginx CSP for "style-src", we're still encountering errors.
Either the 'unsafe-inline' keyword, a hash ('sha256-'), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.
We have already added sha-256 in our nginx.

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

1 participant