forked from frameless/utrecht-huwelijksplanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
37 lines (36 loc) · 940 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const { i18n } = require('./next-i18next.config');
module.exports = {
reactStrictMode: true,
i18n,
transpilePackages: ['@utrecht/web-component-library-react'],
async headers() {
return [
{
// Apply these security headers to all routes
source: '/(.*)',
headers: [
// {
// key: 'Content-Security-Policy',
// value: "default-src 'self'; style-src data: 'self' 'unsafe-inline'; script-src data: 'self' 'unsafe-eval'",
// },
{
key: 'Referrer-Policy',
value: 'origin-when-cross-origin',
},
{
key: 'X-Content-Type-Options',
value: 'nosniff',
},
{
key: 'X-Frame-Options',
value: 'SAMEORIGIN',
},
{
key: 'X-XSS-Protection',
value: '1; mode=block',
},
],
},
];
},
};