Skip to content

Commit

Permalink
Add trusted proxy config to correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzondervan committed Jan 9, 2024
1 parent 39899d2 commit ddbe62a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ framework:
app: cache.adapter.redis
system: cache.adapter.redis
default_redis_provider: "redis://%env(REDIS_HOST)%:%env(int:REDIS_PORT)%"


trusted_hosts: "%env(TRUSTED_HOSTS)%"
trusted_proxies: "%env(TRUSTED_PROXIES)%"
trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port', 'x-forwarded-prefix']

parameters:
samesite: none
when@test:
Expand Down

0 comments on commit ddbe62a

Please sign in to comment.