From 99b4e1459c96b0aa9ce666652633282ca66d4395 Mon Sep 17 00:00:00 2001 From: hyejin kwon <97959501+sunsetkk@users.noreply.github.com> Date: Thu, 31 Jul 2025 08:07:44 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"Revert=20"[Deploy]=20chore(chat):=20S?= =?UTF-8?q?ockJS=20=EC=99=80=EC=9D=BC=EB=93=9C=EC=B9=B4=EB=93=9C=20?= =?UTF-8?q?=ED=97=88=EC=9A=A9=ED=95=98=EC=A7=80=20=EC=95=8A=EC=9D=8C""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../deepwebide_be/global/config/WebSocketConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/deepdirect/deepwebide_be/global/config/WebSocketConfig.java b/src/main/java/com/deepdirect/deepwebide_be/global/config/WebSocketConfig.java index 0aedd81c..b1e18c05 100644 --- a/src/main/java/com/deepdirect/deepwebide_be/global/config/WebSocketConfig.java +++ b/src/main/java/com/deepdirect/deepwebide_be/global/config/WebSocketConfig.java @@ -24,11 +24,11 @@ public void registerStompEndpoints(StompEndpointRegistry registry) { registry.addEndpoint("/ws/chat") // ws://localhost:8080/ws/chat .addInterceptors(handshakeInterceptor) .setAllowedOriginPatterns( - "http://localhost:*", // 개발환경 (모든 포트) - "https://localhost:*", // HTTPS 로컬 + "http://localhost:5173", // 개발환경 (모든 포트) + "https://localhost:5173", // HTTPS 로컬 "https://www.deepdirect.site", // 프론트엔드 "https://api.deepdirect.site" // API 도메인 (필요시) - ) //TODO:CORS 허용 (배포시 도메인 지지어) + ) //TODO:CORS 허용 (배포시 도메인 지정) .withSockJS(); // SockJS fallback }