This commit is contained in:
Ivan Zinchenko 2026-04-15 19:39:57 +03:00
parent 56a1bee13a
commit 13404b18fa

View File

@ -18,7 +18,7 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
registry.addEndpoint("/api/ws")
.setAllowedOrigins("http://localhost:3000", "http://localhost:3001");
registry.addEndpoint("/api/ws", "/ws")
.setAllowedOriginPatterns("http://localhost:*", "http://127.0.0.1:*", "https://crm.mts.ru");
}
}