Skip to content

Commit

Permalink
Merge pull request #5030 from usu/fix/trusted-proxies
Browse files Browse the repository at this point in the history
fix: add ipv6 localhost to trusted_proxies
  • Loading branch information
usu committed Apr 21, 2024
2 parents 7730f77 + f0e7866 commit a9d6e1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .helm/ecamp3/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ php:
appSecret: ""
corsAllowOrigin: "^https://.*?\\.chart-example\\.local$"
trustedProxies:
- "::1"
- "127.0.0.1"
- "10.0.0.0/8"
- "172.16.0.0/12"
Expand Down
2 changes: 1 addition & 1 deletion api/.env
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration

# API Platform distribution
TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
TRUSTED_PROXIES=::1,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
ADDITIONAL_TRUSTED_HOSTS=localhost
COOKIE_PREFIX=localhost_

Expand Down

0 comments on commit a9d6e1b

Please sign in to comment.