-
Notifications
You must be signed in to change notification settings - Fork 21
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
infinite redirects #3
Comments
here is the request raw:
and here is the response:
|
Hello @eraq, What Magento version is used? |
2.3.3 |
Tested with clean Magento 2.3.3 installation, works normally. Often infinite redirects issue happens because of https redirect configuration. May you try to debug redirects by creating a helper script? (taken from here)
Example of an Infinite Redirect from HTTP to HTTPS
If you are on Windows you may need to use the WSL terminal, or use PowerShell bash command if available. |
I was having the same issue and found that signing up for an ngrok account, adding an auth token (step 3 here https://ngrok.com/download) and running I'm still having other issues, but that solved the redirect problem. |
I had the same issue. Setting |
@jamiethorpe this really worked ( |
First I want to say thank you for building this and making it public. I very much appreciate it.
I've been having some issues getting this to work correctly.
I'm running magento2 in wamp with a virtual host name 'http://magento.local' which works correctly loading magento at that url. I am not forcing secure url on frontend or admin. When I go to the ngrok 'http://xxx.ngrok.io' url, magento loads the homepage but with all css and js resources broken as they point to the local url of 'http://magento.local and are blocked by cross domain origin'. So of course now I install and enable this module.
with the module installed and enabled and cache cleared, setup upgrade and di compile run. index reindexed etc.
At the Ngrok url
http://xxx.ngrok.io
the I get an infinite 302 redirect loop back to that same ngrok urlhitting a static php file directly 'http://xxx.ngrok.io/ngroktest/test.php' it does return a successful 200
When I log
__METHOD__
at the top ofShkoliar\Ngrok\Plugin\Model::afterGetBaseUrl
, I see that the method is running, when I comment out the method, the homepage loads but with all resources blocked pointing to the 'magento.local' path.I have disabled and cleared all caches, I have run cache:clean and cache:flush, setup:update and di:compile along with index:reindex and static-content:deploy -f. I have deploy mode in developer. I have tried this with rewrite on and off. I have tried clearing browser cache and cookies, and using different browsers I never used before. I am running ngrok like so
ngrok http -host-header=magento.local 80
Is there something else I am missing?
The text was updated successfully, but these errors were encountered: