Skip to content

Commit

Permalink
chore: headers
Browse files Browse the repository at this point in the history
  • Loading branch information
yanlow committed Aug 28, 2024
1 parent b867ea0 commit 20052d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions _headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*
X-Frame-Options: DENY
Content-Security-Policy: default-src 'self'; script-src 'unsafe-eval'; frame-ancestors 'none';
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"hasInstallScript": "true",
"scripts": {
"dev": "vite --port 4173",
"build": "tsc && npm run build:css && vite build",
"build": "tsc && npm run build:css && vite build && cp ./_headers ./dist",
"build:css": "postcss src/tailwind.css -o src/index.css",
"start": "npm-run-all -p start:*",
"start:css": "postcss src/tailwind.css -o src/index.css --watch",
Expand Down

0 comments on commit 20052d2

Please sign in to comment.