Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ConflictingHeadersException with routing?callback=fos.Router.setData  #255

Copy link
Copy link
Closed
@AntoineLemaire

Description

@AntoineLemaire
Issue body actions

Since this PR was merged, something I got some errors from my clients:

Class name: Symfony\Component\HttpFoundation\Exception\ConflictingHeadersException 
Message: The request has both a trusted Forwarded header and a trusted Client IP header, conflicting with each other with regards to the originating IP addresses of the request. This is the result of a misconfiguration. You should either configure your proxy only to send one of these headers, or configure Symfony to distrust one of them. 
Uri: https://mydomain.fr/js/routing?callback=fos.Router.setData 

Here are my client HTTP Headers for this request

HTTP_FORWARDED  'for="41.79.192.38:5377"'
HTTP_X_FORWARDED_FOR    '41.79.195.38, 185.27.179.25'

Do you know what is the problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.