Skip to content

Commit 9047f26

Browse files
authored
Merge pull request #2292 from atlanhq/plt-289
imp: disabling XSS filter temporarily
2 parents 0444176 + defdd09 commit 9047f26

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

webapp/src/main/java/org/apache/atlas/web/security/AtlasSecurityConfig.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,8 @@ protected void configure(HttpSecurity httpSecurity) throws Exception {
240240
LOG.info("Atlas is in HA or HS Mode, enabling ActiveServerFilter");
241241
}
242242

243-
//XSS filter at first
244-
if(isAlbEnabled) {
245-
httpSecurity.addFilterBefore(atlasXSSPreventionFilter, BasicAuthenticationFilter.class);
246-
LOG.info("XSS filter is enabled from Atlas");
247-
} else {
248-
LOG.info("XSS filter is disabled from Atlas");
249-
}
243+
// TODO: Enable XSS Filter after solving encoding problems
244+
LOG.warn("XSS filter is disabled from Atlas");
250245
//Enable activeServerFilter regardless of HA or HS
251246
httpSecurity.addFilterAfter(activeServerFilter, BasicAuthenticationFilter.class);
252247

0 commit comments

Comments
 (0)