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) }