Don’t redirect
Figure 1. Don’t redirect localhost to https

Open Firefox

Type in address bar:

about:config
Warning
Accept the risk!

Search for:

browser.fixup.fallback-to-https

and:

dom.security.https_only_mode_ever_enabled

Double click both items to the "false" setting