From d9b972df8470db15a95991c98353a951c087b33b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Copin?= Date: Mon, 20 May 2019 08:20:43 +0200 Subject: [PATCH] feat: authorize localhost call to demo api To avoid CORS rejection when using client-generator we should enable this kind of origins --- api/helm/api/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/helm/api/values.yaml b/api/helm/api/values.yaml index 65e470ce8..ef75797b4 100644 --- a/api/helm/api/values.yaml +++ b/api/helm/api/values.yaml @@ -16,7 +16,7 @@ php: env: prod debug: '0' secret: "" - corsAllowOrigin: "^https?://.*?\\.api-platform\\.com$" + corsAllowOrigin: "^https?://(.*?api-platform\\.com|localhost(?::[0-9]+)?)$" trustedHosts: "^.*\\.api\\-platform\\.com$" trustedProxies: - 103.21.244.0/22