Skip to content

Commit

Permalink
fix: allowedHeaders 와일드 카드 추가 (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeeeyeon authored Jul 26, 2024
1 parent d8bba36 commit 660a538
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class CorsConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedHeaders("*")
.allowedMethods("HEAD", "OPTIONS", "GET", "POST", "PUT", "PATCH", "DELETE")
.allowedOrigins("https://packyforyou.com", "https://dev.packyforyou.com");
}
Expand Down

0 comments on commit 660a538

Please sign in to comment.