mirror of
https://github.com/Av0idD4rk/packmate.git
synced 2026-10-24 20:29:26 +00:00
Исправлена ошибка WebSocket
This commit is contained in:
parent
d1a69db830
commit
1f2869f939
@ -56,6 +56,8 @@ public class ApplicationConfiguration extends WebSecurityConfigurerAdapter imple
|
||||
|
||||
@Override
|
||||
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
|
||||
registry.addHandler(webSocketHandler, "/api/ws").withSockJS();
|
||||
registry.addHandler(webSocketHandler, "/api/ws")
|
||||
.setAllowedOrigins("*")
|
||||
.withSockJS();
|
||||
}
|
||||
}
|
||||
|
||||
@ -7,9 +7,11 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.context.event.ApplicationReadyEvent;
|
||||
import org.springframework.context.event.EventListener;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
import org.springframework.web.socket.config.annotation.EnableWebSocket;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableScheduling
|
||||
@EnableWebSocket
|
||||
public class PackmateApplication {
|
||||
|
||||
@Value("${enable-capture}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user