Skip to content

Commit

Permalink
refactor: cors 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoding-play authored and youngsu5582 committed Dec 7, 2024
1 parent 80ff9c3 commit 8f230b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/main/java/corea/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class WebConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000", "https://d2n5lw9a9hwjzs.cloudfront.net/",
"https://d114zsd8hvayia.cloudfront.net/", "https://vvv.code-review-area.com/",
"https://code-review-area.com/", "https://www.code-review-area.com/",
"https://dev.code-review-area.com/")
.allowedMethods("GET", "POST", "DELETE", "PUT")
Expand Down

0 comments on commit 8f230b4

Please sign in to comment.