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

BUG Fix CSP headers by using Requirements API for custom script #50

Merged

Conversation

maxime-rainville
Copy link
Contributor

@maxime-rainville maxime-rainville commented Feb 2, 2024

CSP headers break the tool because of some hand written inline JS code snippet. Using the Requirements API fixes the issue by attaching a Nonce to the snippet.

Parent issue

src/Controller.php Outdated Show resolved Hide resolved
@emteknetnz emteknetnz merged commit 170ec1d into silverstripe:1.0 Feb 2, 2024
9 checks passed
@emteknetnz emteknetnz deleted the pulls/1.0/csp-headers branch February 2, 2024 03:40
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

Successfully merging this pull request may close these issues.

2 participants