Hello Everyone,
I force laravel to respond with https.
In AppProvideServer.php
\URL::forceScheme(‘https’);
But on the login page when I Post . The rspond is in http.
Do You Have Any Idea?
Hello Everyone,
I force laravel to respond with https.
In AppProvideServer.php
\URL::forceScheme(‘https’);
But on the login page when I Post . The rspond is in http.
Do You Have Any Idea?
Did you set up https in your web server config?
The thing you set just forces generated urls to use https, it doesn’t enable https. It also does nothing if https is set up correctly in your webserver configuration.
Thank you for your answer.
I am using librenms container with nginx.
I am using a Proxy pass on another port apache2.
Everything is working well. I post login server respond in http. But if I come back on Page login. I can access to every page in https.
It s just the login response. It is in http. I try to find something in login controller but nothing interesting.
You do not need to touch any of the code to make this happen.
Update APP_URL
and ASSET_URL
in .env
. Then add the X-FORWARDED-PROTO
header to your apache2 instance.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.