Skip to content

Commit

Permalink
exclude websocket paths from spring security (#1523)
Browse files Browse the repository at this point in the history
  • Loading branch information
goekay committed Aug 15, 2024
1 parent 7b1e5a3 commit ab6ffc2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.requestMatchers(
"/static/**",
CONFIG.getCxfMapping() + "/**",
WebSocketConfiguration.PATH_INFIX + "**",
"/WEB-INF/views/**" // https://github.com/spring-projects/spring-security/issues/13285#issuecomment-1579097065
).permitAll()
.requestMatchers(prefix + "/**").hasRole("ADMIN")
Expand Down

0 comments on commit ab6ffc2

Please sign in to comment.