Skip to content

Commit

Permalink
Added TRUSTED_PROXIES env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsykun committed Jan 5, 2023
1 parent 155ef92 commit a044093
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ framework:
secret: '%env(APP_SECRET)%'
#csrf_protection: true
http_method_override: false
trusted_proxies: '%env(TRUSTED_PROXIES)%'
trusted_headers: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-port', 'x-forwarded-prefix']

# Enables session support. Note that the session will ONLY be started if you read or write from it.
# Remove or comment this section to explicitly disable session support.
Expand Down
1 change: 1 addition & 0 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ parameters:
env(GITHUB_NO_API): true
env(PACKAGIST_DIST_PATH): '%kernel.project_dir%/var/zipball'
env(PACKAGE_UPDATE_INTERVAL): 14400
env(TRUSTED_PROXIES): null

# twig sandbox
security_policy_tags: ['app', 'for', 'if', 'spaceless', 'set', 'do', 'apply', 'verbatim']
Expand Down

0 comments on commit a044093

Please sign in to comment.