Remove redirection of localhost to HTTPS
Remove redirection of localhost to HTTPS
Symptoms
- Chrome redirects http://localhosttohttps://localhost
- On guest mode, http://localhostis accessible
- Curl can retrieve http://localhost
Cause
One of my test project was configuring SSL on nginx.
The configuration was redirecting localhost to https for testing purposes and Chrome had since then cached the redirection.
Subsequent calls were no longer hitting nginx as they were only hitting Chrome cache.
Fix
- Open the Web Developer Consoleon Chrome,CTRL+SHIFT+I
- Right click on the reload arrow
- Select Empty Cache And Hard Reload
This will remove all cached items including the redirection. http://localhost will no longer be redirected by Chrome.
 
Comments
Post a Comment