Skip to content

Commit

Permalink
Update next.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-M90 authored Feb 29, 2024
1 parent fc56aa9 commit deebff6
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,38 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
const nextConfig = {
async headers() {
return [
{
source: '/:path*',
headers: [
{
key: 'X-Frame-Options',
value: 'SAMEORIGIN',
},
{
key: 'Content-Security-Policy',
value: "frame-ancestors 'none'",
},
{
key: 'Referrer-Policy',
value: 'same-origin',
},
{
key: 'Strict-Transport-Security',
value: 'max-age=15768000',
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
{
key: 'X-XSS-Protection',
value: '1; mode=block',
},
],
},
];
},
}

module.exports = nextConfig

0 comments on commit deebff6

Please sign in to comment.