Skip to content

Commit

Permalink
updating security headers
Browse files Browse the repository at this point in the history
  • Loading branch information
kkatusic committed Dec 2, 2024
1 parent ec3fa78 commit e8d71d5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,18 @@ const moduleExports = withBundleAnalyzer({
key: 'Content-Security-Policy',
value: "frame-ancestors 'self'",
},
{
key: 'X-Content-Type-Options',
value: 'nosniff', // Mitigates MIME type sniffing
},
{
key: 'Referrer-Policy',
value: 'strict-origin-when-cross-origin', // Protects user privacy
},
{
key: 'Permissions-Policy',
value: 'camera=(), microphone=(), geolocation=()', // Limits usage of browser features
},
],
},
{
Expand Down

0 comments on commit e8d71d5

Please sign in to comment.