From ad48614e88c626191604d4ed0775d48a1014a70c Mon Sep 17 00:00:00 2001 From: Austin Turner Date: Mon, 20 Jan 2025 09:57:32 -0700 Subject: [PATCH] Fix CSP to allow emotion to work --- apps/api/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index 55753f6a..c15c09d5 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -189,7 +189,7 @@ if (ENV.NODE_ENV === 'production' && !ENV.CI && cluster.isPrimary) { 'https://js.stripe.com', ], scriptSrcAttr: ["'none'"], - styleSrc: ["'self'", 'https:', "'unsafe-inline'", "'sha256-0hAheEzaMe6uXIKV4EehS9pu1am1lj/KnnzrOYqckXk='"], + styleSrc: ["'self'", 'https:', "'unsafe-inline'"], upgradeInsecureRequests: ENV.ENVIRONMENT === 'development' ? null : [], }, },