Skip to content

Commit

Permalink
Merge pull request #94 from everstake/dev
Browse files Browse the repository at this point in the history
update next config
  • Loading branch information
pobihailo-everstake authored Oct 7, 2024
2 parents 54d040d + badfe57 commit 14ee21e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,37 @@ const nextConfig = {
forceSwcTransforms: true,
},
poweredByHeader: false,

async headers() {
return [
{
source: "/(.*)",
headers: [
{
key: "X-Frame-Options",
value: "SAMEORIGIN",
},
{
key: "Content-Security-Policy",
value: "frame-ancestors 'self';",
},
{
key: "X-Content-Type-Options",
value: "nosniff",
},
{
key: "Referrer-Policy",
value: "strict-origin",
},
{
key: "Permissions-Policy",
value:
"geolocation=(), midi=(), sync-xhr=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), fullscreen=(self), payment=()",
},
],
},
];
},
};

export default nextConfig;

0 comments on commit 14ee21e

Please sign in to comment.