refactor(ping-service): remove CORS configuration from code, restructure modules, and update Gradle dependencies

Migrated CORS settings from code to `application.yaml` for better separation of concerns. Integrated `ping-api` into the new `contracts` module for improved modularity. Updated Gradle scripts and dependencies accordingly to reflect the new project structure.
This commit is contained in:
2026-01-12 13:12:20 +01:00
parent 1f9697d504
commit 2f8529156a
4 changed files with 25 additions and 23 deletions
@@ -7,6 +7,19 @@ spring:
- org.springframework.cloud.client.loadbalancer.LoadBalancerAutoConfiguration
cloud:
gateway:
globalcors:
cors-configurations:
'[/**]':
allowed-origin-patterns: "http://localhost:*,http://127.0.0.1:*"
allowed-methods:
- GET
- POST
- PUT
- DELETE
- OPTIONS
allowed-headers: "*"
allow-credentials: true
max-age: 3600
httpclient:
connect-timeout: 3000
response-timeout: 5s
@@ -42,17 +42,6 @@ spring:
health-check-interval: 10s
instance-id: ${spring.application.name}-${server.port}-${random.uuid}
# CORS-Konfiguration ausgelagert aus dem Code
web:
cors:
mappings:
"/**":
allowed-origin-patterns: "http://localhost:*,http://127.0.0.1:*"
allowed-methods: "GET,POST,PUT,DELETE,OPTIONS"
allowed-headers: "*"
allow-credentials: true
max-age: 3600
management:
endpoints:
web: