Skip to content

Commit

Permalink
Removed unecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
taheeraahmed committed Sep 10, 2023
1 parent 388b582 commit 51547d7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ version: '3.7'

services:
app:
container_name: hilfling-app
ports:
# TODO: why is this not working on port 8000
- "8001:8000"
- "8000:8000"
build:
context: .
dockerfile: Dockerfile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ public void addCorsMappings(CorsRegistry registry) {
registry
.addMapping("/**")
.allowedOrigins("http://localhost:3000")
.allowedOrigins("http://localhost:8000")
.allowedOrigins("http://localhost:8080")
.allowedMethods("GET", "PATCH", "POST", "DELETE", "OPTIONS")
.allowedHeaders("*");
}
Expand Down
13 changes: 0 additions & 13 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,6 @@ server:
include-exception: true
include-binding-errors: always
spring:
mvc:
cors:
allow-credentials: false
allowed-origins:
- http://localhost:3000
- http://localhost:8000
- http://0.0.0.0:8000
allowed-methods:
- GET
- POST
- PUT
- DELETE
allowed-headers: "*"
datasource:
hikari:
connection-timeout: 20000
Expand Down

0 comments on commit 51547d7

Please sign in to comment.