Skip to content

Commit

Permalink
Merge pull request #1602 from ConductionNL/feature/XW-151/add-trusted…
Browse files Browse the repository at this point in the history
…-proxy-config

Add trusted proxy config to correct location
  • Loading branch information
rjzondervan authored Jan 9, 2024
2 parents 39899d2 + ddbe62a commit 49420df
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 49420df

Please sign in to comment.