Skip to content

Commit 1ba1bc5

Browse files
authored
feat(deploy): add CORS headers for edgeone (#8)
1 parent 952db6d commit 1ba1bc5

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

edgeone.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"headers": [
3+
{
4+
"source": "/*",
5+
"headers": [
6+
{
7+
"key": "Access-Control-Allow-Origin",
8+
"value": "*"
9+
},
10+
{
11+
"key": "Access-Control-Allow-Methods",
12+
"value": "GET, OPTIONS"
13+
},
14+
{
15+
"key": "Access-Control-Allow-Headers",
16+
"value": "Content-Type"
17+
}
18+
]
19+
}
20+
]
21+
}

0 commit comments

Comments
 (0)