Skip to content

Commit

Permalink
Merge pull request #595 from woowacourse-teams/refactor/594-cors-orig…
Browse files Browse the repository at this point in the history
…in-set

cors를 허용하는 origin 지정
  • Loading branch information
zeus6768 authored Sep 5, 2024
2 parents a99347c + f54d8e0 commit ae61cfe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class WebCorsConfiguration implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowCredentials(true)
.allowedOriginPatterns("*")
.allowedOriginPatterns("https://*.code-zap.com")
.allowedMethods("*")
.exposedHeaders("*");
}
Expand Down

0 comments on commit ae61cfe

Please sign in to comment.