Skip to content

Commit ab0f358

Browse files
[Nebula] Fix: Security headers for Mini App (#7337)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 2a175dc commit ab0f358

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/dashboard/next.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const ContentSecurityPolicy = `
1616
connect-src * data: blob:;
1717
worker-src 'self' blob:;
1818
block-all-mixed-content;
19+
frame-ancestors 'self' https://farcaster.xyz https://*.farcaster.xyz;
1920
`;
2021

2122
const securityHeaders = [
@@ -29,8 +30,7 @@ const securityHeaders = [
2930
},
3031
{
3132
key: "X-Frame-Options",
32-
// allow farcaster.xyz as a frame ancestor for the browser mini app
33-
value: "frame-ancestors 'self' https://farcaster.xyz; default 'self'",
33+
value: "SAMEORIGIN",
3434
},
3535
{
3636
key: "Referrer-Policy",

0 commit comments

Comments
 (0)