requesting slightly more verbose docs for gatsby-plugin-netlify's mergeSecurityHeaders
setting
#31225
Replies: 8 comments
-
We have couple of plugins that document options in different ways:
It would be nice to come around at consistent way of documenting options (and defaults). I think that adding comments to The documentation change to add more clarity to plugin options is always welcome, let's just figure out nicest way to do it and hopefully that would be "go to" way to do this. |
Beta Was this translation helpful? Give feedback.
-
cc @gatsbyjs/learning |
Beta Was this translation helpful? Give feedback.
-
Thanks @LekoArts it's on our radar. Would also be open to a community PR! |
Beta Was this translation helpful? Give feedback.
-
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
Beta Was this translation helpful? Give feedback.
-
Summary
It was not obvious from reading https://www.gatsbyjs.org/packages/gatsby-plugin-netlify/ (particularly the configuration section that the
mergeSecurityHeaders
set the following header rules widely:using
MergeSecurityHeaders: false
does indeed disable them. Could we get an explicit mention of what those headers are in the docs, which currently gloss over it? I will be happy to create a PR if that is preferred, though I am not sure of the best place to say it. By default I'd probably create a comment block like this, right in the middle of the configuration section, but I am not the best docs writer! Something like this:Motivation
This is opaque and can lead to CORS errors with common workflows such as embedding youtube videos in your gatsby pages.
Steps to resolve this issue
I don't propose a behavior change, just some clarity on what that feature does without reading the source code or trying to reverse engineer a deployed netlify site by looking at HTTP response headers in the browser and thinking "I didn't set those...how are they there?"
Please let me know if a PR would be appropriate and I will happily open one following either the above plan or your guidance!
Beta Was this translation helpful? Give feedback.
All reactions