Skip to content

Commit

Permalink
add headers file
Browse files Browse the repository at this point in the history
  • Loading branch information
dr497 committed Aug 16, 2023
1 parent 6694482 commit 04b7f63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions _headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# https://developers.cloudflare.com/pages/platform/headers
/*
Content-Security-Policy: frame-ancestors 'self';
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Referrer-Policy: no-referrer-when-downgrade
Permissions-Policy: geolocation=(), microphone=()
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"homepage": ".",
"scripts": {
"build:xnft": "XNFT=true expo export:web",
"build:web": "WEB=true expo export:web",
"build:web": "WEB=true expo export:web && cp _headers web-build/",
"start": "yarn build:xnt && npx xnft web",
"bundle": "yarn build:xnft && npx xnft bundle",
"dev": "GENERATE_SOURCEMAP=false expo start --clear --web & npx xnft --iframe http://localhost:19006",
Expand Down

0 comments on commit 04b7f63

Please sign in to comment.