From 6b74dec2577b0aaff0ff9fdd156470720571b33f Mon Sep 17 00:00:00 2001 From: augustus Date: Tue, 17 Mar 2026 17:00:49 +0300 Subject: [PATCH] Updated gateway cors --- kilimo-gateway-production.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/kilimo-gateway-production.yml b/kilimo-gateway-production.yml index 540f301..9db7fa7 100644 --- a/kilimo-gateway-production.yml +++ b/kilimo-gateway-production.yml @@ -45,6 +45,23 @@ spring: redis-rate-limiter.replenishRate: 10 redis-rate-limiter.burstCapacity: 20 key-resolver: "#{@userKeyResolver}" + globalcors: + cors-configurations: + '[/**]': + allowedOrigins: + - "http://localhost:3000" + - "https://vm-qpse3mho5qps7fj2kw0hzy.vusercontent.net" + - "https://www.kilimo.farm" + - "https://kilimo.farm" + allowedMethods: + - GET + - POST + - PUT + - DELETE + - OPTIONS + allowedHeaders: + - "*" + allowCredentials: true # 4. Actuator for Troubleshooting management: