Skip to content

Commit

Permalink
add more lenient CSP/COOP headers for preview
Browse files Browse the repository at this point in the history
  • Loading branch information
fennifith committed Feb 28, 2024
1 parent 1afa107 commit 8856ac4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,25 @@
}
]
},
{
"source": "/(.*)",
"missing": [
{
"type": "host",
"value": "unicorn-utterances.com"
}
],
"headers": [
{
"key": "Content-Security-Policy",
"value": "default-src 'self';base-uri 'self';form-action 'self' https://unicorn-utterances.com/ https://app.convertkit.com/;frame-ancestors 'none';frame-src https:;img-src 'self' https: data:;object-src 'none';script-src 'self' 'unsafe-inline' https://vercel.live/;connect-src 'self' https://vercel.live/;style-src 'self' 'unsafe-inline';upgrade-insecure-requests"
},
{
"key": "Cross-Origin-Opener-Policy",
"value": "same-origin-allow-popups"
}
]
},
{
"source": "/(.*)",
"headers": [
Expand Down

0 comments on commit 8856ac4

Please sign in to comment.