diff --git a/api/config/config-prod.php b/api/config/config-prod.php index bb67d88..5e6068d 100644 --- a/api/config/config-prod.php +++ b/api/config/config-prod.php @@ -4,8 +4,10 @@ declare(strict_types=1); return [ 'components' => [ 'request' => [ + // Only the client's IP and protocol are trusted from proxies. + // The host is always taken from the Host header. 'trustedHosts' => [ - 'private', + 'private' => ['X-Forwarded-For', 'X-Forwarded-Proto'], ], ], ],