We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Because the service is exposed to port 80, Laravel picks up the request as HTTP although all information was passed over HTTPS.
To Reproduce Steps to reproduce the behavior:
url()
Expected behavior url()->to('/') should return HTTPS not HTTP.
url()->to('/')
Screenshots N/A
Desktop (please complete the following information):
Additional context A fix is provided below
The text was updated successfully, but these errors were encountered:
Append the following into your app/Providers/AppServiceProvider.php and ensure your laravel/src/.env is in production.
app/Providers/AppServiceProvider.php
laravel/src/.env
public function register() { if (env('APP_ENV') === 'production') { $this->app['request']->server->set('HTTPS', true); } }
We'll look into trying to provide a fix via Traefik but the above will work in all cases.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Because the service is exposed to port 80, Laravel picks up the request as HTTP although all information was passed over HTTPS.
To Reproduce
Steps to reproduce the behavior:
url()
Expected behavior
url()->to('/')
should return HTTPS not HTTP.Screenshots
N/A
Desktop (please complete the following information):
Additional context
A fix is provided below
The text was updated successfully, but these errors were encountered: