Skip to content

Commit 3b36a95

Browse files
authored
Merge pull request #1149 from objectstack-ai/claude/fix-cors-error-on-vercel-deployment
fix: add CSP headers to allow connections to *.objectstack.ai domain
2 parents 8fdf669 + 8ec3032 commit 3b36a95

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

apps/studio/vercel.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@
1717
}
1818
},
1919
"headers": [
20+
{
21+
"source": "/(.*)",
22+
"headers": [
23+
{
24+
"key": "Content-Security-Policy",
25+
"value": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: blob: https:; connect-src 'self' ws: wss: http://localhost:* https://*.objectstack.io https://*.objectstack.ai https://*.sentry.io"
26+
}
27+
]
28+
},
2029
{
2130
"source": "/assets/(.*)",
2231
"headers": [

0 commit comments

Comments
 (0)