-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
29 lines (28 loc) · 1.28 KB
/
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
/** @type {import('next').NextConfig} */
const nextConfig = {
async headers() {
return [
{
source: '/:path*',
headers: [
{
key: 'Content-Security-Policy',
value: `
default-src 'self';
connect-src 'self' https://app.posthog.com https://t.posthog.com https://us.i.posthog.com https://vitals.vercel-insights.com https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com https://*.googleapis.com https://*.vercel-scripts.com;
img-src 'self' data: https://*.google-analytics.com https://*.googletagmanager.com https://*.googleapis.com https://*.gstatic.com;
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://app.posthog.com https://maps.googleapis.com https://*.googleapis.com https://*.gstatic.com https://*.vercel-scripts.com;
style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://*.googleapis.com;
font-src 'self' https://fonts.gstatic.com;
worker-src 'self' blob:;
frame-src 'self' https://maps.google.com https://*.googleapis.com;
`
.replace(/\s+/g, ' ')
.trim(),
},
],
},
];
},
};
module.exports = nextConfig;