Skip to content

Commit

Permalink
fix: change cors for dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
mushroom1324 committed Nov 5, 2024
1 parent fd5065c commit 0ff1b7c
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", "https://www.repick-server.shop", "https://repick-server.shop", "https://appleid.apple.com"));
config.setAllowedOrigins(List.of("http://localhost:3000", "https://www.repick-server.shop", "https://repick-server.shop", "https://appleid.apple.com", "https://dev.repick-server.shop"));
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
config.setAllowedHeaders(List.of("*"));
config.setExposedHeaders(List.of("*"));
Expand Down

0 comments on commit 0ff1b7c

Please sign in to comment.