앱 실시간 갱신 수정

This commit is contained in:
Macbook
2026-06-14 19:41:49 +09:00
parent c105ae209b
commit ad6347f2a2
9 changed files with 71 additions and 39 deletions
@@ -35,8 +35,12 @@ public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
// Tauri Desktop — SockJS(XHR·쿠키)는 cross-origin WebView에서 실패 → 순수 WebSocket
registry.addEndpoint("/ws/trading/ws")
.setAllowedOriginPatterns("*");
registry.addEndpoint("/ws/trading")
.setAllowedOriginPatterns("*")
.withSockJS(); // SockJS fallback (브라우저 환경 대비)
.withSockJS(); // SockJS fallback (브라우저 동일 오리진)
}
}