-
-
Notifications
You must be signed in to change notification settings - Fork 742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirects and HTTPs #68
Comments
I don't know, it's more a proxy / Symfony issue. Maybe a note on this section should be good : https://symfony.com/doc/current/routing.html#redirecting-to-urls-and-routes-directly-from-a-route |
Hello, I have this issue today by testing facebook. I had to accept https, which I did by updating my docker environment with #60. Then, I notice the url generated when I was browsing with https//mydomain.local, the urls generated with the router start with instead of https. What a tried to do is forcing /**
* @Route("/contact", name="website.contact", schemes={"https"})
*/
public function contact(Request $request)
{} The app still think it is in http instead of https so it will redirect infinitely. thanks @thePanz because your issue helped me ! |
@walva : did you try un-commenting the |
Sorry @thePanz, my message was unclear. Uncommenting ´TRUSTED_PROXIES´ did fix the issue. |
@thePanz after reflection, a note in this section https://github.com/dunglas/symfony-docker/blob/master/docs/troubleshooting.md would be welcome |
@maxhelias see #86 :) |
let's continue in #86 |
When configuring a route with a redirect like:
The redirect it always using the
http
schema, if theTRUSTED_PROXIES
environment is not set. When setting it, the redirect works perfectly.This behavior should be mentioned in the readme, wdty?
The text was updated successfully, but these errors were encountered: