Skip to content

Commit 8fd135c

Browse files
committed
fix: allow origin all
1 parent 0e107af commit 8fd135c

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"dev-host": "next dev -H 0.0.0.0"
1011
},
1112
"dependencies": {
1213
"@supabase/supabase-js": "^2.46.1",

vercel.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"headers": [
3-
{
4-
"source": "/api/(.*)",
5-
"headers": [
6-
{ "key": "Access-Control-Allow-Credentials", "value": "true" },
7-
{ "key": "Access-Control-Allow-Origin", "value": "*" },
8-
{ "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT" },
9-
{ "key": "Access-Control-Allow-Headers", "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" }
10-
]
11-
}
12-
]
13-
}
2+
"headers": [
3+
{
4+
"source": "/api/(.*)",
5+
"headers": [
6+
{ "key": "Access-Control-Allow-Credentials", "value": "false" },
7+
{ "key": "Access-Control-Allow-Origin", "value": "*" },
8+
{ "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT" },
9+
{ "key": "Access-Control-Allow-Headers", "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" }
10+
]
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)