Skip to content

Commit decf6fe

Browse files
authored
fix: enable hsts (#2565) (#2575)
Signed-off-by: achmelo <a.chmelo@gmail.com> Signed-off-by: achmelo <a.chmelo@gmail.com> (cherry picked from commit 4cffe97)
1 parent 067083e commit decf6fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gateway-service/src/main/java/org/zowe/apiml/gateway/security/config/NewSecurityConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ protected HttpSecurity baseConfigure(HttpSecurity http) throws Exception {
473473
return http
474474
.cors()
475475
.and().csrf().disable() // NOSONAR we are using SAMESITE cookie to mitigate CSRF
476-
.headers().httpStrictTransportSecurity().disable()
476+
.headers().httpStrictTransportSecurity().and()
477477
.frameOptions().disable()
478478
.and().exceptionHandling().authenticationEntryPoint(handlerInitializer.getBasicAuthUnauthorizedHandler())
479479
.and().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)

0 commit comments

Comments
 (0)