diff --git a/next.config.js b/next.config.js index 5118bbd5..50ae002b 100644 --- a/next.config.js +++ b/next.config.js @@ -47,12 +47,17 @@ const nextConfig = { key: 'Access-Control-Allow-Headers', value: 'Content-Type, Authorization', }, + ], + }, + { + source: '/(.*)', + headers: [ { key: 'Content-Security-Policy', value: ContentSecurityPolicy.replace(/\n/g, ''), } - ], - }, + ] + } ] }, }