Skip to content

Commit

Permalink
Changed security configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
P3TROOS committed Oct 16, 2023
1 parent 7407144 commit e0ddee8
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", "https://infosafe.live", "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 e0ddee8

Please sign in to comment.