Our Gatsby site uwalumni.com is set up to use the gatsby-plugin-netlify
plugin to specify that we want all pages to use the referrer-policy “strict-origin-when-cross-origin”. The config looks like this:
{
resolve: gatsby-plugin-netlify
,
options: {
headers: {
“/*”: [
“Referrer-Policy: strict-origin-when-cross-origin”,
]
},
allPageHeaders: ,
mergeSecurityHeaders: true, // boolean to turn off the default security headers
mergeCachingHeaders: true, // boolean to turn off the default caching headers
transformHeaders: (headers, path) => headers, // optional transform for manipulating headers under each path (e.g.sorting), etc.
generateMatchPathRewrites: true, // boolean to turn off automatic creation of redirect rules for client only paths
}
},
However, this does not seem to be working, and for some reason Netlify is building our site such that it has the Referrer-Policy “same-origin” - resulting in the “Referer” value not being sent to external websites we link to.
Can someone help me figure out how to get our site configured to use “strict-origin-when-cross-origin”?