简体   繁体   中英

How to stop localhost http://localhost from switching to https://localhost

I am writing a web application, and http://localhost:3000 is redirecting to https://localhost:3000

This was not happening a month ago when I finished writing two other applications. I went from working with Sinatra to Rails in the past month, although I have worked with Rails prior without any of these issues.

What can I do to stop this forced switching??

This is probably due your browser, because you have accessed the app in the HTTPS address, it will automatically switch to the HTTPS version of site.

Here you have more information for Firefox , but the solution is to change the settings and set browser.urlbar.autoFill to false . Other option could be to clear the History.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM