mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Disable dns prefetch via HTTP header
This commit is contained in:
parent
adfd140a72
commit
1a4c98c93e
1 changed files with 1 additions and 0 deletions
|
@ -150,6 +150,7 @@ func (mh *mainHandler) handle(w http.ResponseWriter, r *http.Request) error {
|
|||
w.Header().Set("X-Content-Type-Options", "nosniff")
|
||||
w.Header().Set("X-Frame-Options", "deny")
|
||||
w.Header().Set("X-XSS-Protection", "1; mode=block")
|
||||
w.Header().Set("X-DNS-Prefetch-Control", "off")
|
||||
} else {
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue