mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
feat: add YouTube to connect-src in Content Security Policy
This commit is contained in:
@@ -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:*'] : []),
|
||||
|
||||
Reference in New Issue
Block a user