Skip to content

Commit

Permalink
fix: CORS allowedMethods 메소드 추가 (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeeeyeon authored Jul 25, 2024
1 parent 2ac9c30 commit 42c6a5b
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 CorsConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedMethods("HEAD", "GET", "OPTIONS")
.allowedMethods("HEAD", "OPTIONS", "GET", "POST", "PUT", "PATCH", "DELETE")
.allowedOrigins("https://packyforyou.com", "https://dev.packyforyou.com");
}
}

0 comments on commit 42c6a5b

Please sign in to comment.