Compare commits

..

No commits in common. "f92e5bead8be0cdff407f8a1207b51e77da32fd2" and "08b6b598291cd9d01332a470a458bae33d67846d" have entirely different histories.

1 changed files with 1 additions and 3 deletions

View File

@ -84,9 +84,7 @@ public class SecurityConfig {
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
config.setAllowedOrigins(Arrays.asList("http://localhost:9527", "http://localhost:8080","http://154.219.110.17:8080", "https://test.tju.edu.kg","http://154.219.110.17:8081",
"https://project-frontend.tju.edu.kg","https://project-backend.tju.edu.kg",
"http://project-frontend.tju.edu.kg","http://project-backend.tju.edu.kg"));
config.setAllowedOrigins(Arrays.asList("http://localhost:9527", "http://localhost:8080","http://154.219.110.17:8080", "https://test.tju.edu.kg"));
config.setAllowedHeaders(Arrays.asList("*"));
config.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS"));
source.registerCorsConfiguration("/**", config);