Skip to content

Commit

Permalink
Fixing cors issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AlistairMRoss committed Oct 16, 2023
1 parent 2cb29fc commit c3bfb1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
@Bean
CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(Arrays.asList("https://ec2-52-91-180-105.compute-1.amazonaws.com", "http://localhost:8080", "http://localhost:3000")); //""
configuration.setAllowedOrigins(Arrays.asList("http://localhost:8080", "http://localhost:3000", "https://infosafe.live")); //""
configuration.setAllowedMethods(Arrays.asList("*"));
configuration.setAllowedHeaders(Arrays.asList("*"));
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
Expand Down

0 comments on commit c3bfb1b

Please sign in to comment.