How to troubleshoot and resolve 404 on SockJs's /info path when with cross-origin
问题 I'm having trouble with SockJs and CORS. I use spring. I set up the WebMvcConfigured as follows: @Bean public WebMvcConfigurer corsConfigurer() { return new WebMvcConfigurer() { @Override public void addCorsMappings(CorsRegistry registry) { registry .addMapping("/**") .allowedOrigins("http://localhost:3000") .allowCredentials(true); ; } }; } and WebSocketConfig as follows: @Override public void configureMessageBroker(MessageBrokerRegistry config) { config.enableSimpleBroker("/topic"); config