Skip to content

Commit

Permalink
feat: cors 설정 url 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sujjangOvO committed Dec 3, 2023
1 parent 2c82cc9 commit 1d9d189
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();

configuration.setAllowedOrigins(List.of("http://localhost:3001", "http://localhost:5173",
"http://team12-bucket.s3-website.ap-northeast-2.amazonaws.com", "https://dooohaj6qesmx.cloudfront.net"));
"http://team12-bucket.s3-website.ap-northeast-2.amazonaws.com", "https://dooohaj6qesmx.cloudfront.net",
"https://review-ranger-fe.vercel.app"));
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH"));
configuration.addAllowedHeader("*");
configuration.setExposedHeaders(List.of("Custom-Header"));
Expand Down

0 comments on commit 1d9d189

Please sign in to comment.