From be50d1457c5c391b1d612b621b03ad999cdba7db Mon Sep 17 00:00:00 2001 From: Emanuele Panzeri Date: Mon, 30 Nov 2020 09:50:30 +0100 Subject: [PATCH] Update troubleshooting.md --- docs/troubleshooting.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index e64c1aa..06446fe 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -11,5 +11,6 @@ If you have a SSL trust issues, download the self-signed certificate and run : $ sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /path/to/you/certificate.cer ## HTTPs and Redirects -When Symfony is generating an internal redirect, and you're browsing via `https://...` you're redirected to `http://`. -To fix this issue uncomment the `TRUSTED_PROXIES` setting in your .env file (see https://github.com/dunglas/symfony-docker/issues/68) + +If Symfony is generating an internal redirect for an `https://` url, but the resulting url is `http://`, you have to uncomment the `TRUSTED_PROXIES` setting in your `.env` file. +For more details see the [Symfony internal redirect docuentation](https://symfony.com/doc/current/routing.html#redirecting-to-urls-and-routes-directly-from-a-route).