I'm trying to see my Ruby on Rails app on my localhost, when I run rails server it looks like it is running good with no errors but when I open up my localhost at http://localhost:3000/ it redirects me to https://localhost:8080/ and says refuses to connect. I am able to open my localhost files with no problems but when I run rails server and open localhost with the port it redirects me to https instead of http no matter what I do. I even tried running with different ports. I am on Ubuntu and my app is using Puma.
I have done the following so far:
- Cleared all my cache & history
- Opened incognito window
- Ran rails serverwith different ports
- Changed some about:configsettings tofalsein firefox
- Have searched localhostin 'chrome://net-internals/#hstsand' but says not found
- I've tried the other solutions on this link: Google Chrome redirecting localhost to https
None have worked at all. What could the problem be?
Any advice on this helps! Thanks.
EDIT: Let me know if this needs to be changed, this is how I have my etc/host/ set up
