refactor: 移除websocket兼容性支持

This commit is contained in:
ray
2024-08-24 22:26:16 +08:00
parent c5618da87b
commit 60a475c2b3

View File

@@ -41,9 +41,7 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
// 注册 /ws 的端点
.addEndpoint("/ws")
// 允许跨域
.setAllowedOriginPatterns("*")
// 启用 SockJS (浏览器不支持WebSocketSockJS 将会提供兼容性支持)
.withSockJS();
.setAllowedOriginPatterns("*");
}