SignalR MVC 5 Websocket no valid Credentials

后端 未结 4 908
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-25 11:15

i try to use SignalR in MVC Application. It works well but i get the following Error in the Chrome console

 WebSocket connection to \'ws://localhost:18245/si         


        
4条回答
  •  情话喂你
    2020-12-25 12:06

    Here is how I solved it and for me this had nothing to do with Chrome. I am using chrome and it's working with real-time data. My error was spring security

    .antMatchers("/ws/myapp", "/http/myaap", "/topic/**", "/app/**" ).permitAll()
    

    WebSocket Handshake - Unexpected response code 200 - AngularJs and Spring Boot

提交回复
热议问题