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: