Skip to content

Commit

Permalink
hotfix: 배포 도메인 CORS 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
gmlrude committed Sep 26, 2024
1 parent fee7c04 commit 9b1adfa
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ public class WebConfiguration implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:5173", "https://check-it.shop", "https://d1gntbefjuz72k.cloudfront.net", "https://cloudfront.check-it.shop", "http://cloudfront.check-it.shop")
.allowedOrigins(
"http://localhost:5173", // 프론트 로컬
"https://api.check-it.shop", // 서버 배포 주소
"https://www.check-it.shop" // 프론트 배포 주소
)
.allowedMethods("GET", "POST", "PUT", "DELETE")
.allowCredentials(true);
}
Expand Down

0 comments on commit 9b1adfa

Please sign in to comment.