Skip to content

Commit

Permalink
cors 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
jinia91 committed Aug 18, 2024
1 parent 37526f2 commit b9a6758
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit b9a6758

Please sign in to comment.