Skip to content

Commit 737029b

Browse files
c1tru55maxhelias
authored andcommitted
Update docs "Troubleshooting -> HTTPs and Redirects" section
1 parent 05d72b4 commit 737029b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/troubleshooting.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ If you work on linux and cannot edit some of the project files right after the f
66

77
## HTTPs and Redirects
88

9-
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.
9+
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 and add this line in `config/packages/framework.yaml`:
10+
```
11+
# config/packages/framework.yaml
12+
framework:
13+
trusted_proxies: '%env(TRUSTED_PROXIES)%'
14+
```
15+
1016
For more details see the [Symfony internal redirect documentation](https://symfony.com/doc/current/routing.html#redirecting-to-urls-and-routes-directly-from-a-route).
1117

1218
## TLS/HTTPS Issues

0 commit comments

Comments
 (0)