Hi, I’m trying to add WebSocketSecurity using the latest Spring guide. The react side is all setup.
@Configuration
@EnableWebSocketSecurity
public class WebSocketSecurityConfig {
@Bean
AuthorizationManager<Message<?>> messageAuthorizationManager(MessageMatcherDelegatingAuthorizationManager.Builder messages) {
messages.anyMessage().permitAll();
return messages.build();
}
}
Just want to allow the socket to allow any conneciton regardless of login. The new starter has spring security and a login form.
Right now prior to login the STOMP SockJS client fails to connect.
Thanks for the help.