Skip to content

Commit

Permalink
bug : cors 오류 수정 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanmin-00 committed Jan 16, 2025
1 parent 61411bf commit b1a744e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/ripple/BE/global/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ public void addCorsMappings(CorsRegistry registry) {
.addMapping("/**")
.allowedHeaders("*")
.allowedOrigins(
"http://localhost:3000", "http://localhost:8080", "http://api.cotato-ripple.kro.kr/")
"http://localhost:3000",
"http://localhost:8080",
"http://api.cotato-ripple.kro.kr/",
"https://api.cotato-ripple.kro.kr/")
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS");
}
}

0 comments on commit b1a744e

Please sign in to comment.