Skip to content

Commit

Permalink
[feat] : CorsConfig 경로 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
chahyunsoo committed May 9, 2024
1 parent ced517b commit a8219b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/seoul/gonggong/global/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public CorsFilter corsFilter() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowCredentials(true);

configuration.setAllowedOrigins(Arrays.asList("http://localhost:3000", "https://bokdakbang.store"));
configuration.setAllowedOrigins(Arrays.asList("http://localhost:3000", "https://bokdakbang.store",
"https://bokdak-bang.vercel.app"));
configuration.addAllowedHeader("*");
configuration.setAllowedMethods(Arrays.asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));

Expand Down

0 comments on commit a8219b3

Please sign in to comment.