Compare commits
2 commits
main
...
cf_pages_h
Author | SHA1 | Date | |
---|---|---|---|
|
7e8ed85ff6 | ||
|
8cb2852361 |
2 changed files with 8 additions and 1 deletions
7
cloudflare/_headers
Normal file
7
cloudflare/_headers
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Remove the ACAO header which is added by default on Cloudflare Pages
|
||||
/*
|
||||
! Access-Control-Allow-Origin
|
||||
|
||||
# Add ACAO header for images
|
||||
/images/*
|
||||
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