-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.js
More file actions
34 lines (32 loc) · 1.69 KB
/
next.config.js
File metadata and controls
34 lines (32 loc) · 1.69 KB
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
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ['cdn.sanity.io'],
},
async headers() {
const csp = [
"default-src 'self';",
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://ahsnjrotc.kit.com https://kit.com https://app.kit.com https://f.convertkit.com https://www.googletagmanager.com https://app.convertkit.com https://convertkit.com;",
"style-src 'self' 'unsafe-inline';",
"img-src 'self' data: blob: https:;",
"font-src 'self' data:;",
"connect-src 'self' https://ahsnjrotc.sanity.studio https://cdn.sanity.io https://apicdn.sanity.io https://www.google-analytics.com https://region1.google-analytics.com https://f.convertkit.com https://ahsnjrotc.kit.com https://kit.com https://app.kit.com https://app.convertkit.com https://api.convertkit.com https://convertkit.com https://firebase.googleapis.com https://firebaseinstallations.googleapis.com https://firebaselogging.googleapis.com https://firestore.googleapis.com https://identitytoolkit.googleapis.com;",
"frame-src 'self' https://ahsnjrotc.kit.com https://kit.com https://app.kit.com https://f.convertkit.com https://app.convertkit.com;",
"form-action 'self' https://app.kit.com https://app.convertkit.com;",
"base-uri 'self';",
"object-src 'none';",
].join(' ')
return [
{
source: '/:path*',
headers: [
{ key: 'Content-Security-Policy', value: csp },
{ key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin' },
{ key: 'X-Content-Type-Options', value: 'nosniff' },
{ key: 'X-Frame-Options', value: 'SAMEORIGIN' },
],
},
]
},
}
module.exports = nextConfig