Skip to content

Commit

Permalink
Merge pull request #918 from near/headers
Browse files Browse the repository at this point in the history
set a referrer policy header
  • Loading branch information
charleslavon authored Jan 10, 2024
2 parents 42ea3f4 + 0fe7454 commit 14104f2
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
@@ -1,5 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
poweredByHeader: false,
compiler: { styledComponents: true },
reactStrictMode: true,
redirects: async () => {
Expand Down Expand Up @@ -58,6 +59,14 @@ const nextConfig = {
destination: 'https://near.dataplane.rudderstack.com/:path*',
}
],
headers: async () => [
{
source: '/:path*',
headers: [{
key: 'Referrer-Policy',
value: 'strict-origin-when-cross-origin,same-origin'
}]
}]
};

module.exports = nextConfig;
Expand Down

0 comments on commit 14104f2

Please sign in to comment.