Skip to content

Commit fe15493

Browse files
committed
fix: remove X-Frame-Options and add CSP for Storybook iframes
1 parent af34d21 commit fe15493

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/storybook/vercel.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
"key": "X-Content-Type-Options",
1616
"value": "nosniff"
1717
},
18-
{
19-
"key": "X-Frame-Options",
20-
"value": "SAMEORIGIN"
21-
},
2218
{
2319
"key": "X-XSS-Protection",
2420
"value": "1; mode=block"
21+
},
22+
{
23+
"key": "Content-Security-Policy",
24+
"value": "frame-ancestors 'self' https://*.vercel.app"
2525
}
2626
]
2727
}

0 commit comments

Comments
 (0)