[+] Added security headers
This commit is contained in:
parent
4e03562460
commit
4a5c18cc73
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,9 +1,13 @@
|
|||||||
# Hugo
|
# Hugo
|
||||||
public
|
public/*
|
||||||
resources
|
resources
|
||||||
assets/jsconfig.json
|
assets/jsconfig.json
|
||||||
.hugo_build.lock
|
.hugo_build.lock
|
||||||
|
|
||||||
|
# Headers
|
||||||
|
!public
|
||||||
|
!public/_headers
|
||||||
|
|
||||||
# VSCode
|
# VSCode
|
||||||
.vscode/*
|
.vscode/*
|
||||||
!.vscode/settings.json
|
!.vscode/settings.json
|
||||||
|
6
public/_headers
Normal file
6
public/_headers
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
https://blog.sunyz.dev/*
|
||||||
|
X-Frame-Options: SAMEORIGIN
|
||||||
|
X-Content-Type-Options: nosniff
|
||||||
|
Referrer-Policy: strict-origin-when-cross-origin
|
||||||
|
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
|
||||||
|
Permissions-Policy: accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()
|
Loading…
Reference in New Issue
Block a user