add x-xss-protection header
This commit is contained in:
parent
f29ab9c96f
commit
ad0d9b1215
@ -326,6 +326,11 @@ if(!config.disallow_proxies_by_headers) {
|
|||||||
blocked_headers = []
|
blocked_headers = []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
app.use(function(req,res,next) {
|
||||||
|
res.set("X-XSS-Protection","1; mode=block")
|
||||||
|
next()
|
||||||
|
})
|
||||||
|
|
||||||
if(DID_I_FINALLY_ADD_HTTPS) {
|
if(DID_I_FINALLY_ADD_HTTPS) {
|
||||||
|
|
||||||
//auto redirect to https
|
//auto redirect to https
|
||||||
|
Loading…
x
Reference in New Issue
Block a user