がChrome’s Data Saver on Androidを使用して、私のsymfony公式サイトへのアクセスが発生使ってsymfonyのアプリケーションにアクセスするとエラーここでは500は、ChromeのデータセーバーがBadRequestHttpException
は私がChromeのデータセーバーは、リバースプロキシとして動作し理解するものから、ログ
[2017-04-06 18:56:23] request.ERROR: Uncaught PHP Exception
Symfony\Component\HttpKernel\Exception\BadRequestHttpException:
"The request headers contain conflicting information regarding the origin of this request." at /home/myapp/app/bootstrap.php.cache line 3184
{"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException(code: 0): The request headers contain conflicting information regarding the origin of this request. at /home/myapp/app/bootstrap.php.cache:3184, Symfony\\Component\\HttpFoundation\\Exception\\ConflictingHeadersException(code: 0): 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. at /home/myapp/app/bootstrap.php.cache:788)"} []
で生成します私のアプリケーションの前にコードと画像を圧縮します。
私はこの文書をhow to use a reverse proxy in front of a Symfony appについて読んでいます。
問題は、IP Chromeのデータセーバープロキシが使用していることに関するドキュメントが見つかりません。
ありがとうございました!