From a49f9be146f04c14561c305d980846a92f8c12b2 Mon Sep 17 00:00:00 2001 From: Janis Date: Wed, 13 May 2026 09:02:56 +0200 Subject: [PATCH] feat: add CORS configuration and reorder JWT settings in application.yml --- .../core/src/main/resources/application.yml | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/modules/core/src/main/resources/application.yml b/modules/core/src/main/resources/application.yml index 97d0514..8ec9203 100644 --- a/modules/core/src/main/resources/application.yml +++ b/modules/core/src/main/resources/application.yml @@ -76,6 +76,11 @@ nowchess: quarkus: http: root-path: /api + cors: + ~: true + origins: ${CORS_ORIGINS} + methods: GET,POST,PUT,DELETE,OPTIONS + headers: Content-Type,Accept,Authorization log: console: json: true @@ -86,19 +91,6 @@ nowchess: exporter: otlp: endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:http://localhost:4317} - mp: - jwt: - verify: - publickey: - location: ${JWT_PUBLIC_KEY_PATH:keys/public.pem} - issuer: nowchess - quarkus: - http: - cors: - ~: true - origins: ${CORS_ORIGINS} - methods: GET,POST,PUT,DELETE,OPTIONS - headers: Content-Type,Accept,Authorization grpc: clients: rule-grpc: @@ -117,6 +109,12 @@ nowchess: url: ${RULE_SERVICE_URL} store-service: url: ${STORE_SERVICE_URL} + mp: + jwt: + verify: + publickey: + location: ${JWT_PUBLIC_KEY_PATH:keys/public.pem} + issuer: nowchess nowchess: redis: host: ${REDIS_HOST}