From 7e36dc792e374ff9a20be0454507f1329b54cdc2 Mon Sep 17 00:00:00 2001 From: luke-h1 Date: Sun, 8 Dec 2024 14:30:04 +0000 Subject: [PATCH] fix(frontend): fix csp issues --- next.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index 54ea7e5ff..14525128e 100644 --- a/next.config.js +++ b/next.config.js @@ -15,7 +15,6 @@ const contentSecurityPolicy = ` connect-src * cloudflareinsights.com; font-src 'self' fonts.gstatic.com https://maxcdn.bootstrapcdn.com/font-awesome/latest/fonts/fontawesome-webfont.woff2; frame-src https://dev.lhowsam.com https://lhowsam.com; - Access-Control-Allow-Origin: *; `; const securityHeaders = [ @@ -50,6 +49,10 @@ const securityHeaders = [ key: 'Permissions-Policy', value: 'camera=(), microphone=(), geolocation=()', }, + { + key: 'Access-Control-Allow-Origin', + value: '*', + }, ]; /**