Permalink
Browse files

Added a commented out example of how to get $request to trust X_FORWA…

…RDED_FOR headers in getClientIp()
  • Loading branch information...
1 parent bb97d81 commit d4365a47d85a341aae9294d171c02e9dcff2ebe5 @neilferreira neilferreira committed Jul 4, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/config/config.yml
View
1 app/config/config.yml
@@ -14,6 +14,7 @@ framework:
validation: { enable_annotations: true }
templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
default_locale: %locale%
+ trust_proxy_headers: false # Should Request object should trust proxy headers (X_FORWARDED_FOR/HTTP_CLIENT_IP)
session: ~
# Twig Configuration

0 comments on commit d4365a4

Please sign in to comment.