Skip to content

Commit

Permalink
main - allowCredentials True로 설정 (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjongwa authored Sep 20, 2023
1 parent 2ca7ffe commit f299e9a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public void addCorsMappings(final CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("https://hanglog.com", "https://hanglog.site", "http://localhost:3000")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS")
.allowCredentials(true)
.exposedHeaders(HttpHeaders.LOCATION);
WebMvcConfigurer.super.addCorsMappings(registry);
}
Expand Down

0 comments on commit f299e9a

Please sign in to comment.