queen-raae / prune-your-follows

15 stars 1 forks source link

Change referrer policy #68

Closed raae closed 1 year ago

raae commented 1 year ago

As of now xata.io and queen.raae.codes analytics cannot see that traffic is coming from pruneyourfollows.com because our referrer policy is no-referrer.

raae commented 1 year ago

I think we need to do the below:

module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-gatsby-cloud`,
      options: {
        allPageHeaders: [
          "Referrer-Policy: strict-origin-when-cross-origin",
        ],
      }
    },
  ]
}

To test that it's correct go to https://securityheaders.com/?q=pruneyourfollows.com&followRedirects=on

CleanShot 2023-01-02 at 13 08 20@2x