Skip to content
Snippets Groups Projects
Commit e1707483 authored by Henrik's avatar Henrik
Browse files

update docker cmd

parent ee1937d0
No related branches found
No related tags found
No related merge requests found
Pipeline #284251 passed
......@@ -65,9 +65,8 @@ public class SecurityConfig {
@Bean
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration config = new CorsConfiguration();
System.out.println("API_URL: " + System.getProperty("API_URL", "http://localhost"));
config.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"));
config.setAllowedOrigins(List.of(System.getProperty("API_URL", "http://localhost")));
config.setAllowedOrigins(List.of(System.getProperty("FRONTEND_URL", "http://localhost")));
config.setAllowedHeaders(Arrays.asList("Authorization", "Content-Type", "Cache-Control"));
config.setAllowCredentials(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment