mirror of
https://github.com/elyby/accounts.git
synced 2026-11-25 16:43:21 +05:30
Furthermore improve reverse proxy security
This commit is contained in:
1 file changed
+3
-1
@@ -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'],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user