fix: update connect-src to include http protocol in development mode

This commit is contained in:
Linus Rath
2026-04-29 13:55:38 +02:00
parent fc49fe0687
commit 0b6fdcabfb
+1 -1
View File
@@ -23,7 +23,7 @@ export async function proxy(request: NextRequest) {
? `'self' 'nonce-${nonce}' 'unsafe-eval' blob:`
: `'self' 'nonce-${nonce}' blob:`;
const connectSrc = isDev ? `'self' https: ws: wss:` : `'self' https:`;
const connectSrc = isDev ? `'self' http: https: ws: wss:` : `'self' https:`;
const frameAncestors = process.env.ALLOWED_FRAME_ANCESTORS?.trim() || "'none'";