From ddbe62a9bb6c19ca4473a2f7ee0084df23410ec5 Mon Sep 17 00:00:00 2001 From: Robert Zondervan Date: Tue, 9 Jan 2024 13:11:34 +0100 Subject: [PATCH] Add trusted proxy config to correct location --- api/config/packages/framework.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/config/packages/framework.yaml b/api/config/packages/framework.yaml index 23c913ea2..7be339232 100644 --- a/api/config/packages/framework.yaml +++ b/api/config/packages/framework.yaml @@ -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: