diff --git a/backend/wiq/src/main/java/com/wiq/wiq/CustomConfig.java b/backend/wiq/src/main/java/com/wiq/wiq/CustomConfig.java index 0ae372a0..05cd845d 100644 --- a/backend/wiq/src/main/java/com/wiq/wiq/CustomConfig.java +++ b/backend/wiq/src/main/java/com/wiq/wiq/CustomConfig.java @@ -10,8 +10,6 @@ public class CustomConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedOrigins("http://localhost:3000") - .allowedMethods("GET", "POST", "PUT", "DELETE") - .allowedHeaders("*"); + .allowedOriginPatterns("http://localhost:**"); } } diff --git a/docker-compose.yml b/docker-compose.yml index 5d7a8648..d9450470 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -46,8 +46,6 @@ build: ./backend/wiq ports: - "8090:8090" - networks: - - mynetwork gatewayservice: container_name: gatewayservice-${teamname:-defaultASW}