Skip to content

Commit

Permalink
🐛 [FIX] swagger post 오류 해결 #368
Browse files Browse the repository at this point in the history
  • Loading branch information
miiiinju1 committed Sep 25, 2023
1 parent 3b9bd23 commit 224078e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration config = new CorsConfiguration();

config.setAllowCredentials(true);
config.setAllowedOrigins(List.of("http://localhost:3000","http://morandi.co.kr", "https://morandi.co.kr"));
config.setAllowedOrigins(List.of("http://localhost:3000","http://morandi.co.kr", "https://morandi.co.kr", "http://api.morandi.co.kr", "https://api.morandi.co.kr"));
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
config.setAllowedHeaders(List.of("*"));
config.setExposedHeaders(List.of("*"));
Expand Down

0 comments on commit 224078e

Please sign in to comment.