-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)type: breaks-passivityA change that breaks passivity with the previous releaseA change that breaks passivity with the previous releasetype: enhancementA general enhancementA general enhancement
Milestone
Description
Expected Behavior
By default, Spring Security should send this HTTP header:
X-XSS-Protection: 0
Current Behavior
By default, Spring Security sends this HTTP header:
X-XSS-Protection: 1; mode=block
Context
OWASP has updated its recommendation regarding the X-XSS-Protection
HTTP header.
OWASP used to recommend the header be set to 1; mode=block
, which is what Spring Security does by default today. See https://docs.spring.io/spring-security/site/docs/current/reference/html5/#headers-xss-protection
However, they now recommend the header be set to 0
blacelle, NicolasCARPi and dlehammer
Metadata
Metadata
Labels
in: webAn issue in web modules (web, webmvc)An issue in web modules (web, webmvc)type: breaks-passivityA change that breaks passivity with the previous releaseA change that breaks passivity with the previous releasetype: enhancementA general enhancementA general enhancement