From b8ec4284fc0d8a3e7b3d7e5ceb139a318d5a09c3 Mon Sep 17 00:00:00 2001 From: TaeHoon0 Date: Sun, 21 Jul 2024 17:19:48 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20websocket=20config=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/CatchStudy/global/config/StompWebSocketConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/example/CatchStudy/global/config/StompWebSocketConfig.java b/src/main/java/com/example/CatchStudy/global/config/StompWebSocketConfig.java index ab96412..f84e509 100644 --- a/src/main/java/com/example/CatchStudy/global/config/StompWebSocketConfig.java +++ b/src/main/java/com/example/CatchStudy/global/config/StompWebSocketConfig.java @@ -16,7 +16,7 @@ public class StompWebSocketConfig implements WebSocketMessageBrokerConfigurer { public void registerStompEndpoints(StompEndpointRegistry registry) { registry.addEndpoint("/ws") - .setAllowedOrigins("*") + .setAllowedOriginPatterns("*") .withSockJS(); }