-
-
Notifications
You must be signed in to change notification settings - Fork 513
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
Middleware\LocaleSessionRedirect can't handle request url from proxy server , cause https to http #765
Comments
|
Oh wow this is a significantly older issue and I'm encountering it in a multi-tenancy setup in 2024. This will always occur when a load balancer sends traffic in HTTP instead of HTTPS. |
Hi everyone, Thanks for bringing this up! I’m interested in helping with this issue, but I’m unsure how to reproduce it locally. If someone could write a failing test case and create a PR, that would be super helpful. It would give me a clearer understanding of the problem and make it easier to contribute effectively. |
I bet all we'll need to do is have a test case for an HTTPS URL here and it'll try to redirect to HTTP.
If someone doesn't beat me to it I can poke at it later! |
Describe the bug
i'm using reverse proxy server to handle ssl and load balance
this middleware
Mcamara\LaravelLocalization\Middleware\LocaleSessionRedirect
will handle the url with locale prefix,but at
line:51
it will parse url from https to http , i guess the reason is this func parse url from load balance request url not client request urlTo Reproduce
Steps to reproduce the behavior:
$redirection
) which middleware doseExpected behavior
return correct url
More info:
Route::groups
:Mcamara\LaravelLocalization\Middleware\LocaleSessionRedirect
The text was updated successfully, but these errors were encountered: