Skip to content

Commit

Permalink
Changes done to fix the CORS policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Mario committed Mar 9, 2024
1 parent f919336 commit 06c9957
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions backend/wiq/src/main/java/com/wiq/wiq/CustomConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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:**");
}
}
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@
build: ./backend/wiq
ports:
- "8090:8090"
networks:
- mynetwork

gatewayservice:
container_name: gatewayservice-${teamname:-defaultASW}
Expand Down

0 comments on commit 06c9957

Please sign in to comment.