Skip to content

Commit d9b972d

Browse files
committed
feat: authorize localhost call to demo api
To avoid CORS rejection when using client-generator we should enable this kind of origins
1 parent 47849fd commit d9b972d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/helm/api/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ php:
1616
env: prod
1717
debug: '0'
1818
secret: ""
19-
corsAllowOrigin: "^https?://.*?\\.api-platform\\.com$"
19+
corsAllowOrigin: "^https?://(.*?api-platform\\.com|localhost(?::[0-9]+)?)$"
2020
trustedHosts: "^.*\\.api\\-platform\\.com$"
2121
trustedProxies:
2222
- 103.21.244.0/22

0 commit comments

Comments
 (0)