Skip to content

Commit

Permalink
[fix] cors 설정2
Browse files Browse the repository at this point in the history
  • Loading branch information
suhyeon7497 committed Nov 14, 2024
1 parent 3cde28d commit 562a7f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public CorsFilter corsFilter() {
config.addAllowedHeader("PATCH");
config.addAllowedMethod("HEAD");
config.setMaxAge(3600L);
config.setExposedHeaders(Arrays.asList("Location"));
config.setExposedHeaders(Arrays.asList("Location", "Set-Cookie"));
source.registerCorsConfiguration("/**", config);
return new CorsFilter(source);
}
Expand Down

0 comments on commit 562a7f1

Please sign in to comment.