Skip to content

Set localhost as a trusted-proxy #110

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

Closed
bratao opened this issue Jun 5, 2018 · 2 comments
Closed

Set localhost as a trusted-proxy #110

bratao opened this issue Jun 5, 2018 · 2 comments

Comments

@bratao
Copy link
Contributor

bratao commented Jun 5, 2018

Into my local fork I had to set localhost as a trusted-proxy for Laravel/Symfony

So during a reverse proxy using Nginx I can detect correctly the protocol for asset()

Line 190 on function mapRequest @ HttpKernel.php
$class::setTrustedProxies(array('127.0.0.1/8'));

I just created this Issue so others can find a solution. I think that the correct way should set trusted proxies as a config.

@andig
Copy link
Contributor

andig commented Jun 5, 2018

Definitely. We had an older discussion about- this should be a bootstrap-specific config option.

@mathieudz
Copy link
Contributor

This is fixed in #114

@andig andig closed this as completed Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants