Skip to content

Commit

Permalink
[feat] cors vercel url 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
chahyunsoo committed Sep 5, 2024
1 parent d323ed7 commit 4d7e70e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/ussum/homepage/global/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public CorsFilter corsFilter() {
config.addAllowedOrigin("http://localhost:3000");
config.addAllowedOrigin("https://kusitms28.shop");
config.addAllowedOrigin("https://ssu-student-union.github.io");
config.addAllowedOrigin("https://homepage-frontend-dun.vercel.app");
config.addAllowedHeader("*");
config.setAllowedMethods(Arrays.asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
source.registerCorsConfiguration("/**",config);
Expand Down

0 comments on commit 4d7e70e

Please sign in to comment.