Skip to content

Commit

Permalink
Merge branch 'develop' into CF-441-new-modal
Browse files Browse the repository at this point in the history
  • Loading branch information
willemliufdmg committed Jan 8, 2024
2 parents 3c2b076 + 0dd6ec5 commit 5e0d07b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions next.config.js
Expand Up @@ -37,6 +37,38 @@ module.exports = {
},
];
},
headers() {
return [
{
// Apply these headers to all routes in your application.
source: '/:path*',
headers: [
{
key: 'Content-Security-Policy',
value: "default-src http: https: data: blob: ws: wss: 'unsafe-inline' 'unsafe-eval';"
.replace(/\s{2,}/g, ' ')
.trim(),
},
{
key: 'Referrer-Policy',
value: 'strict-origin-when-cross-origin',
},
{
key: 'strict-transport-security',
value: 'max-age=15724800',
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
{
key: 'X-Frame-Options',
value: 'SAMEORIGIN',
},
],
},
];
},
webpack: (config, options) => {
// Markdown
config.module.rules.push({
Expand Down

0 comments on commit 5e0d07b

Please sign in to comment.