From 3df060047c143fd6439516f59f805abb1cee8382 Mon Sep 17 00:00:00 2001 From: ollieri3 Date: Sat, 6 Apr 2024 10:49:34 +0100 Subject: [PATCH] Tweak security policy to allow connections to cloudflare --- src/middleware/general.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/middleware/general.ts b/src/middleware/general.ts index ceed6f4..4790fb1 100644 --- a/src/middleware/general.ts +++ b/src/middleware/general.ts @@ -9,6 +9,7 @@ export const helmetMiddleware = helmet({ directives: { "img-src": ["'self'", "data:", "img.shields.io"], // Allow img.shields.io for footer badges "script-src": ["'self'", "*.cloudflareinsights.com"], // Allow Cloudflare analytics + "connect-src": ["'self'", "*.cloudflareinsights.com"], }, }, });