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

Support CSP headers generation for static content on Cloudflare #63

Open
castarco opened this issue Mar 31, 2024 · 1 comment
Open

Support CSP headers generation for static content on Cloudflare #63

castarco opened this issue Mar 31, 2024 · 1 comment
Labels
adapters csp Content-Security-Policy enhancement New feature or request Fund good first issue Good for newcomers ssg Related to Static Site Generation

Comments

@castarco
Copy link
Contributor

castarco commented Mar 31, 2024

To improve the usability of Astro-Shield, it would be good to support the generation of headers metadata specific for the Cloudflare provider, so we can generate CSP headers for static content.

Reference

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@castarco castarco added enhancement New feature or request good first issue Good for newcomers csp Content-Security-Policy ssg Related to Static Site Generation labels Mar 31, 2024
@castarco castarco changed the title Add option to generate Cloudfare's public/_headers file (for static builds) Support CSP headers generation for static content on Cloudflare Mar 31, 2024
@polar-sh polar-sh bot added the Fund label Apr 4, 2024
@jacobpretorius
Copy link

I've hacked together a very simple temporary workaround for anyone who needs to get going with SRI headers in their CSP with Cloudflare Pages while this actual proper implementation is open.

Feel free to use the code snippets in my example to do the same if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapters csp Content-Security-Policy enhancement New feature or request Fund good first issue Good for newcomers ssg Related to Static Site Generation
Projects
None yet
Development

No branches or pull requests

2 participants