From b9a67585ece371ee59bddc43c3d58860781a7e1c Mon Sep 17 00:00:00 2001 From: jinia91 Date: Sun, 18 Aug 2024 17:49:03 +0900 Subject: [PATCH] =?UTF-8?q?cors=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jiniaslog/blog/shared/inbound/websocket/WebSocketConfig.kt | 2 +- .../src/main/kotlin/kr/co/jiniaslog/shared/config/WebConfig.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/websocket-kernel/src/main/kotlin/kr/co/jiniaslog/blog/shared/inbound/websocket/WebSocketConfig.kt b/libs/websocket-kernel/src/main/kotlin/kr/co/jiniaslog/blog/shared/inbound/websocket/WebSocketConfig.kt index 108fc675..45122d99 100644 --- a/libs/websocket-kernel/src/main/kotlin/kr/co/jiniaslog/blog/shared/inbound/websocket/WebSocketConfig.kt +++ b/libs/websocket-kernel/src/main/kotlin/kr/co/jiniaslog/blog/shared/inbound/websocket/WebSocketConfig.kt @@ -23,7 +23,7 @@ class WebSocketConfig( ) : WebSocketMessageBrokerConfigurer { override fun registerStompEndpoints(registry: StompEndpointRegistry) { registry.addEndpoint("/ws") - .setAllowedOriginPatterns("http://localhost:*") + .setAllowedOriginPatterns("https://www.jiniaslog.co.kr") .addInterceptors(websocketPreAuthInterceptor) .withSockJS() } diff --git a/mains/monolith-main/src/main/kotlin/kr/co/jiniaslog/shared/config/WebConfig.kt b/mains/monolith-main/src/main/kotlin/kr/co/jiniaslog/shared/config/WebConfig.kt index 7175eb10..6a1c5e8e 100644 --- a/mains/monolith-main/src/main/kotlin/kr/co/jiniaslog/shared/config/WebConfig.kt +++ b/mains/monolith-main/src/main/kotlin/kr/co/jiniaslog/shared/config/WebConfig.kt @@ -12,7 +12,7 @@ class WebConfig : WebMvcConfigurer { .addMapping("/**") .allowCredentials(true) // fixme 주입하게하자 - .allowedOrigins("https://blog-front-black.vercel.app") + .allowedOrigins("https://www.jiniaslog.co.kr") .allowedMethods("GET", "POST", "PUT", "DELETE") .maxAge(3600) }