Skip to content

Commit

Permalink
feat: cors &===(^t^)===3 tl
Browse files Browse the repository at this point in the history
  • Loading branch information
jbj338033 committed Aug 1, 2024
1 parent f9a503d commit 0909873
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class WebConfig : WebMvcConfigurer {
override fun addCorsMappings(registry: CorsRegistry) {
registry
.addMapping("/**")
.allowedOriginPatterns("https://openmusic.kr", "https://api.openmusic.kr")
.allowedOrigins("https://openmusic.kr", "https://api.openmusic.kr")
.allowedMethods("OPTIONS", "GET", "POST", "PUT", "PATCH", "DELETE")
.allowedHeaders("*")
.allowCredentials(true)
Expand Down

0 comments on commit 0909873

Please sign in to comment.