Skip to content

Commit

Permalink
Merge pull request #37 from gooiman/fix/cors
Browse files Browse the repository at this point in the history
fix: cors origin 추가
  • Loading branch information
koosco authored Sep 28, 2024
2 parents 7faebb9 + dccdc21 commit 832400d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/dev/gooiman/server/config/web/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public CorsConfigurationSource corsConfigurationSource() {

corsConfig.setAllowCredentials(true);
corsConfig.setAllowedOrigins(
List.of("http://localhost:3000", "http://localhost:8080/*", "http://localhost:5173"));
List.of("http://localhost:3000", "http://localhost:8080/*", "http://localhost:5173",
"https://gooiman.eatsteak.dev"));
corsConfig.setAllowedMethods(List.of("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
corsConfig.setAllowedHeaders(List.of("*"));
corsConfig.setAllowCredentials(true);
Expand Down

0 comments on commit 832400d

Please sign in to comment.