Skip to content

Commit

Permalink
Merge pull request #924 from near/default_header
Browse files Browse the repository at this point in the history
Specifies a referrer policy to ensure we pass the referrer to analytics
  • Loading branch information
charleslavon authored Jan 12, 2024
2 parents 2fe0ac3 + 7f0ec7d commit 1fee616
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ const nextConfig = {
source: '/api/analytics/:path*',
destination: 'https://near.dataplane.rudderstack.com/:path*',
}
],
headers: async () => [
{
source: '/:path*',
headers: [{
key: 'Referrer-Policy',
value: 'strict-origin-when-cross-origin'
}]
}
]
};

Expand Down

0 comments on commit 1fee616

Please sign in to comment.