feat: add YouTube to connect-src in Content Security Policy

This commit is contained in:
yusufipk
2026-05-23 20:44:52 +02:00
parent 378ca1977b
commit 6692db992d
+1
View File
@@ -21,6 +21,7 @@ const cdnOrigin = bunnyCdnHostname ? `https://${bunnyCdnHostname}` : '';
const connectSrcParts = [
"'self'",
'https://video.bunnycdn.com',
'https://www.youtube.com',
cdnOrigin,
// Allow Next.js HMR websocket in development
...(isDev ? ['ws://localhost:* wss://localhost:*'] : []),