@@ -25,7 +25,7 @@ Accept-Ranges: bytes
2525Connection: keep-alive
2626<b >X-Frame-Options: SAMEORIGIN
2727X-Content-Type-Options: nosniff
28- X-XSS-Protection: 1; mode=block
28+ X-XSS-Protection: 0
2929Referrer-Policy: strict-origin-when-cross-origin
3030Strict-Transport-Security: max-age=63072000; includeSubDomains; preload</b >
3131</pre >
@@ -70,7 +70,7 @@ start NGINX with the module to avoid having your domain preloaded by Chrome.
7070Enables or disables applying security headers. The default set includes:
7171
7272* ` X-Frame-Options: SAMEORIGIN `
73- * ` X-XSS-Protection: 1; mode=block `
73+ * ` X-XSS-Protection: 0 `
7474* ` Referrer-Policy: strict-origin-when-cross-origin `
7575* ` X-Content-Type-Options: nosniff `
7676
@@ -105,12 +105,15 @@ A special value `omit` disables sending a particular header by the module (usefu
105105### ` security_headers_xss `
106106
107107- ** syntax** : ` security_headers_xss off | on | block | omit `
108- - ** default** : ` block `
108+ - ** default** : ` off `
109109- ** context** : ` http ` , ` server ` , ` location `
110110
111111Controls ` X-XSS-Protection ` header.
112112Special ` omit ` value will disable sending the header by the module.
113113The ` off ` value is for disabling XSS protection: ` X-XSS-Protection: 0 ` .
114+ This is the default because
115+ [ modern browsers do not support it] ( https://github.com/GetPageSpeed/ngx_security_headers/issues/19 ) and where it is
116+ supported, it introduces vulnerabilities.
114117
115118### ` security_headers_frame `
116119
0 commit comments