Replies: 1 comment
-
Hi @bnjmnrsh , I'm not sure it is possible to easily configure headers in Github Pages... 🤔 , I actually never tried, but I would be pleasantly surprised if that was possible. The few times I checked in the past I didn't find anything. Regarding meta tags... that's an interesting idea. Not sure it's great, but beats doing nothing. Feel free to open an issue describing how you envision such a feature! 😄 . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @castarco thank you for taking this project on.
I see that you have issues created for creating CSP headers on platforms like Cloudflare, Vercel and Netlify. Github Pages, however does not provide an API for modifying headers, and so setting a meta tag with a CSP header is the best we can do in this environment.
Do you have any recommended approaches for using astro-sheild on Github Pages? For example, would it be possible or advisable to make
getGlobalHashes
available in order to set these as values in a CSP manually defined in a meta tag?Beta Was this translation helpful? Give feedback.
All reactions