security: add custome headers

This commit is contained in:
SouthFox-D 2022-03-22 10:45:58 +08:00
parent abb232efc0
commit 0f245e159f
2 changed files with 7 additions and 0 deletions

View file

@ -44,6 +44,7 @@ jobs:
fonttools ttLib.woff2 compress -o Zpix.woff2 Zpix.subset.ttf
mv Zpix.woff2 ./public/css/fonts
mv Zpix.subset.ttf ./public/css/fonts/Zpix.ttf
mv _headers ./public
cd ./public
git init
git add --all .

6
_headers Normal file
View file

@ -0,0 +1,6 @@
/*
X-Frame-Options: allow-from https://mantyke.icu/
X-Content-Type-Options: nosniff
Referrer-Policy: no-referrer
Permissions-Policy: document-domain=()
Content-Security-Policy: script-src 'self'; frame-ancestors 'none';