Skip to content

Commit

Permalink
fix: enable hsts (#2565)
Browse files Browse the repository at this point in the history
Signed-off-by: achmelo <[email protected]>

Signed-off-by: achmelo <[email protected]>
  • Loading branch information
achmelo authored Sep 1, 2022
1 parent 23bed56 commit 4cffe97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ protected HttpSecurity baseConfigure(HttpSecurity http) throws Exception {
return http
.cors()
.and().csrf().disable() // NOSONAR we are using SAMESITE cookie to mitigate CSRF
.headers().httpStrictTransportSecurity().disable()
.headers().httpStrictTransportSecurity().and()
.frameOptions().disable()
.and().exceptionHandling().authenticationEntryPoint(handlerInitializer.getBasicAuthUnauthorizedHandler())
.and().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
Expand Down

0 comments on commit 4cffe97

Please sign in to comment.