Skip to content

Commit e994f23

Browse files
committed
allow content-type header in CORS
1 parent 549856e commit e994f23

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

now.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
"name": "engine262-api",
33
"version": 2,
44
"routes": [
5-
{ "src": "/api/gist", "dest": "/api/gist.js" },
5+
{
6+
"src": "/api/gist",
7+
"dest": "/api/gist.js",
8+
"headers": {
9+
"Access-Control-Allow-Headers": "content-type"
10+
}
11+
},
612
{
713
"src": ".*",
814
"status": 302,

0 commit comments

Comments
 (0)