Android で Chrome のデータ セーバーを使用して Symfony Web サイトにアクセスすると、エラー 500 が生成されます。
ここにログがあります
[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)"} []
私が理解していることから、Chrome のデータセーバーは、コードと画像を圧縮するアプリケーションの前でリバース プロキシとして機能します。
Symfony アプリの前でリバース プロキシを使用する方法について、このドキュメントを読みました。
問題は、Chrome のデータセーバー プロキシが使用している IP に関するドキュメントが見つからないことです。
手伝ってくれてありがとう!