You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to suggest adding a new option in the plugin to flush all CSP header directives to a file in .cache directory which would allow other plugins to interact with.
For instance, gatsby-plugin-s3 would be able to pick it up and merge with their own params, which would then upload custom Metadata to S3 (then serve Content-Security-Policy as header).
Other plugins such as gatsby-plugin-netlify would be able to implement the same action.
@lightningspirit I agree, this feature would make server-side CSP implementation a lot easier.
Do you know of any alternate solutions/workarounds for a header-based approach?
Actually, after a couple of tests, I ended up not using this plugin at all. Instead, I only used gatsby-uc/gatsby-plugin-s3#144 and decided to hardcode my Content-Security-Policy in plugin's configs for headers.
gatsbyjs/gatsby#10890 (comment)
The text was updated successfully, but these errors were encountered: