You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "aditya-gupta36 (via GitHub)" <gi...@apache.org> on 2026/01/16 10:54:42 UTC

Re: [PR] ATLAS-5160: Remove deprecated X-XSS-PROTECTION header from HTTP response headers initialization and Atlas Spring Security Config [atlas]

aditya-gupta36 commented on code in PR #482:
URL: https://github.com/apache/atlas/pull/482#discussion_r2698032534


##########
webapp/src/main/java/org/apache/atlas/web/security/AtlasSecurityConfig.java:
##########
@@ -195,7 +195,8 @@ protected void configure(HttpSecurity httpSecurity) throws Exception {
         //@formatter:off
         httpSecurity.authorizeRequests().anyRequest().authenticated()
                 .and()
-                .headers()
+                // Why disable() xssProtection -> By default Spring Security automatically adds security headers unless you disable them. No Modern Browsers support and its replaced by "Content-Security-Policy"

Review Comment:
   @chaitalicod  Yes, It's required, it signifies clear intent why we need to disable it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@atlas.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org