Skip to content

Commit ab6ffc2

Browse files
committed
exclude websocket paths from spring security (#1523)
1 parent 7b1e5a3 commit ab6ffc2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/de/rwth/idsg/steve/config/SecurityConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
9999
.requestMatchers(
100100
"/static/**",
101101
CONFIG.getCxfMapping() + "/**",
102+
WebSocketConfiguration.PATH_INFIX + "**",
102103
"/WEB-INF/views/**" // https://github.com/spring-projects/spring-security/issues/13285#issuecomment-1579097065
103104
).permitAll()
104105
.requestMatchers(prefix + "/**").hasRole("ADMIN")

0 commit comments

Comments
 (0)