Add Cloudflare Pages headers file
This commit is contained in:
parent
990bef4d17
commit
8cb2852361
2 changed files with 4 additions and 1 deletions
3
cloudflare/_headers
Normal file
3
cloudflare/_headers
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Remove the ACAO header which is added by default on Cloudflare Pages
|
||||
/*
|
||||
! Access-Control-Allow-Origin
|
|
@ -8,7 +8,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"start": "node scripts/serve-local.js",
|
||||
"build": "node scripts/build.js"
|
||||
"build": "node scripts/build.js && cp cloudflare/_headers build/"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.11.1",
|
||||
|
|
Loading…
Reference in a new issue