Skip to content

Commit 318d9f2

Browse files
committed
chore: Add CORS headers to API routes in vercel.json for improved cross-origin resource sharing
1 parent 12e3128 commit 318d9f2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

vercel.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"trailingSlash": false,
3+
"headers": [
4+
{
5+
"source": "/api/(.*)",
6+
"headers": [
7+
{ "key": "Access-Control-Allow-Origin", "value": "*" },
8+
{ "key": "Access-Control-Allow-Methods", "value": "GET, OPTIONS" },
9+
{ "key": "Access-Control-Allow-Headers", "value": "Content-Type" }
10+
]
11+
}
12+
],
313
"rewrites": [
414
{
515
"source": "/ingest/static/:path*",

0 commit comments

Comments
 (0)