I'm trying to find a way to set password protection for subdomains and specific pages for my Gatsby website. I used netlify.toml file to switch _headers files for production, branch-deploy and preview-deploy contexts, but it's not working (headers are not being set). Did I miss anything?
Hey there! If you still require help, can I ask that you visit Netlify Community and share your question there? You may wish to search and see if this has been asked before!
About me
My question in a little more detail
I'm trying to find a way to set password protection for subdomains and specific pages for my Gatsby website. I used
netlify.toml
file to switch_headers
files forproduction
,branch-deploy
andpreview-deploy
contexts, but it's not working (headers are not being set). Did I miss anything?My folder structure looks like this:
Netlify.toml:
_headers
:_branchdeploy_headers
&_deploypreview_headers
:Gatsby info: