Skip to content

Commit 14f38f8

Browse files
committed
allow access to all origins (CORS)
1 parent 6d543a2 commit 14f38f8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

deploy.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"type": "move",
3434
"src": "src/server/",
3535
"dst": "[[root_web]]",
36-
"match": "^.*\\.(html|php)$",
36+
"match": "^.*\\.(html|php|htaccess)$",
3737
"add-header-comment": true
3838
},
3939

src/server/.htaccess

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Open up the API to all origins.
2+
Header set Access-Control-Allow-Origin "*"

0 commit comments

Comments
 (0)