Skip to content

Commit 075cf8b

Browse files
committed
chore: add CSP for iframe embedding
1 parent cdc0c4f commit 075cf8b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sample-apps/react/react-dogfood/next.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ const nextConfig = {
4242
},
4343
],
4444
},
45+
{
46+
source: '/(.*)',
47+
headers: [
48+
{
49+
key: 'Content-Security-Policy',
50+
value:
51+
"frame-ancestors 'self' https://stream-generic-demo.vercel.app http://localhost:5100;",
52+
},
53+
],
54+
},
4555
];
4656
},
4757

0 commit comments

Comments
 (0)