Skip to content

Commit

Permalink
fix reported issues
Browse files Browse the repository at this point in the history
  • Loading branch information
marwanehcine committed Mar 7, 2024
1 parent 88e789a commit 126302e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ SecurityWebFilterChain securityWebFilterChain(ServerHttpSecurity http,

// disable CSRF protection, considering it will be managed
// by proxified webapps, not the gateway.
http.csrf().disable().exceptionHandling().accessDeniedHandler(new CustomAccessDeniedHandler());
http.csrf().disable();

// custom handling for forbidden error
http.exceptionHandling().accessDeniedHandler(new CustomAccessDeniedHandler());

sortedCustomizers(customizers).forEach(customizer -> {
log.debug("Applying security customizer {}", customizer.getName());
Expand Down

0 comments on commit 126302e

Please sign in to comment.