Skip to content

Commit

Permalink
[fix] Swagger 403 forbidden 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
chahyunsoo committed Aug 21, 2024
1 parent 2d3fd3c commit 7b856fa
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 @@ -19,6 +19,7 @@ public CorsFilter corsFilter() {
config.setAllowCredentials(true);
config.addAllowedOrigin("http://localhost:5173");
config.addAllowedOrigin("http://localhost:3000");
config.addAllowedOrigin("https://kusitms28.shop");
config.addAllowedHeader("*");
config.setAllowedMethods(Arrays.asList("HEAD", "GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
source.registerCorsConfiguration("/**",config);
Expand Down

0 comments on commit 7b856fa

Please sign in to comment.