Skip to content

Commit

Permalink
[Refactor] cors method 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyunio committed Nov 18, 2024
1 parent 6ea958a commit 4f44db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/basic/study/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class WebConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/api/**")
.allowedOrigins("http://localhost:" + port)
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
.allowedHeaders("*");
}
}

0 comments on commit 4f44db2

Please sign in to comment.