Skip to content

Commit

Permalink
refactor: corsConfig 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
xloyeon committed Dec 17, 2023
1 parent 2c73c0b commit 8f625fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void addCorsMappings(CorsRegistry registry) {
String[] patterns = allowedOriginPatterns.toArray(String[]::new);
registry.addMapping("/**")
.allowedMethods("*")
.allowedOriginPatterns("*")
.allowedOriginPatterns("*", "http://localhost:5173")
.exposedHeaders("Set-Cookie")
.allowCredentials(true);
}
Expand Down

0 comments on commit 8f625fb

Please sign in to comment.