refactor: 移除websocket兼容性支持

This commit is contained in:
ray committed 2024-08-24 22:26:16 +08:00
1 parent c5618da87b
commit 60a475c2b3
1 file changed
+1 -3
@@ -41,9 +41,7 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
// 注册 /ws 的端点
.addEndpoint("/ws")
// 允许跨域
.setAllowedOriginPatterns("*")
// 启用 SockJS (浏览器不支持WebSocket,SockJS 将会提供兼容性支持)
.withSockJS();
.setAllowedOriginPatterns("*");
}