|
|
|
@ -22,7 +22,7 @@ public class AssistDBBackendApplication { |
|
|
|
|
public CorsFilter corsFilter() { |
|
|
|
|
CorsConfiguration corsConfiguration = new CorsConfiguration(); |
|
|
|
|
corsConfiguration.setAllowCredentials(true); |
|
|
|
|
corsConfiguration.setAllowedOrigins(Arrays.asList("http://localhost:4200")); |
|
|
|
|
corsConfiguration.setAllowedOrigins(Arrays.asList("http://localhost:9002")); |
|
|
|
|
corsConfiguration.setAllowedHeaders(Arrays.asList("Origin", "Access-Control-Allow-Origin", "Content-Type", |
|
|
|
|
"Accept", "Authorization", "Origin, Accept", "X-Requested-With", |
|
|
|
|
"Access-Control-Request-Method", "Access-Control-Request-Headers")); |
|
|
|
|