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

remove inline CSS and reconfigure CSP plugin #46

Merged
merged 18 commits into from
Aug 25, 2023
Merged

Conversation

merobi-hub
Copy link
Collaborator

@merobi-hub merobi-hub commented Aug 14, 2023

When configured to add some protection to the site, Gatsby's CSP header plugin breaks it due to the use of inline CSS across the site. The plugin was already added to the site but was configured to allow unsafe inline CSS.

This removes the inline CSS or employs hashing where needed and reconfigures gatsby-plugin-csp so it will add a CSP header to the site with some protections against XSS attacks.

Signed-off-by: Michael Robinson <[email protected]>
Signed-off-by: Michael Robinson <[email protected]>
@merobi-hub merobi-hub marked this pull request as draft August 14, 2023 20:15
@merobi-hub merobi-hub marked this pull request as ready for review August 24, 2023 20:54
@merobi-hub merobi-hub requested a review from phixMe August 24, 2023 20:54
Copy link
Member

@phixMe phixMe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @merobi-hub

@merobi-hub merobi-hub merged commit a78c50c into main Aug 25, 2023
2 checks passed
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