Skip to content

Commit

Permalink
Update SecurityConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
singingsandhill authored Dec 18, 2024
1 parent 3252437 commit 6b1e6f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public CorsConfigurationSource corsConfigurationSource() {
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
CorsConfiguration config = new CorsConfiguration();

config.setAllowedOrigins(List.of("http://localhost:5173", "http://localhost:8080","https://chapter-1.github.io","https://chapter1.blu2print.site" ));
config.setAllowedOrigins(List.of("http://localhost:5173", "http://localhost:8080","https://chapter-1.github.io","https://chapter1.blu2print.site", "https://api.blu2print.site" ));
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
config.setAllowedHeaders(List.of("Authorization", "Content-Type", "X-Requested-With", "Accept", "Origin"));
config.setExposedHeaders(List.of("Authorization"));
Expand Down

0 comments on commit 6b1e6f3

Please sign in to comment.