Firefox redirects to https

后端 未结 10 560
自闭症患者
自闭症患者 2020-12-07 13:43

I\'m using Firefox, and while setting up a server, I have been fiddling around with redirects. Now, Firefox has cached a 301 redirect from http://example.com/ to https://exa

相关标签:
10条回答
  • 2020-12-07 14:08

    I tried the 'correct' answer, plus the comment about including cache in the deletion, and I was still having issues with my problem site.

    I opened the firefox profile directory and searched for the website name in all files.

    I found it in 'logins-backup.json' and deleted that file to finally fix the problem.

    0 讨论(0)
  • 2020-12-07 14:09

    Alternative solution, easy.

    Open Firefox and in the address bar type this URL

    http://example.com/?fake_parameter_to_bypass_cache
    

    This should force the browser to reload the web page from http://

    0 讨论(0)
  • 2020-12-07 14:10

    I had the same problem but the answer was that I used a .dev extension to access my local websites !

    I cleared all historic data in FF and nothing changed.

    Searching for another solution, I found this page https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/

    With .dev being an official gTLD, we're most likely better of changing our preferred local development suffix from .dev to something else. If you're looking for a quick "search and replace" alternative for existing setups, consider the .test gTLD, which is a reserved name by IETF for testing (or development) purposes.

    I changed my local website extensions from .dev to .test and all work perfectly !

    0 讨论(0)
  • 2020-12-07 14:13

    The solution that worked for me:

    1. Go to about:config
    2. Look for network.stricttransportsecurity.preloadlist and set it to "false"
    3. Enjoy

    If the above STILL DOES NOT WORK, try setting browser.fixup.fallback-to-https to "False" from about:config

    0 讨论(0)
  • 2020-12-07 14:13

    In my case, I decided to use a *.dev domain for local development. But then I tried to open the site in Firefox, and after a while I realized it uses HTTPS, even when I start the url with "http://..." I tried to right-click on the link in the History, and choose Forget About This Site, or clear the cache. But it didn't help.

    Later I found out that the dev domain is in HSTS preload list these days. Which means Firefox and Chrome (and probably others) don't let you access the subdomains over HTTPS. More on it here and here.

    0 讨论(0)
  • 2020-12-07 14:14

    None of the answers worked for me, the only the one was the one in the comment of Muhammad so thanks in advance to him, I copy the answer here to make it easier:

    • Go to about:config
    • Look for browser.fixup.fallback-to-https and set it to false
    0 讨论(0)
提交回复
热议问题