为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Why does FireFox prevent a redirect from an HTTPS site to an HTTP site?

  • 8 个回答
  • 1 人有此问题
  • 3 次查看
  • 最后回复者为 cor-el

more options

Scenario:

https://websitea.com, available over HTTPS only, with HSTS header set. http://websiteb.com, available over HTTP only.

https://websitea.com has a page that links directly to http://websiteb.com. Users can click this link and be sent there properly https://websitea.com has a different page which links to https://websitea.com/redirect-page. That page is just a redirect to http://websiteb.com. Users that click this link are sent to https://websiteb.com instead of http://websiteb.com.

FireFox is upgrading the redirect from HTTP to HTTPS.

No other browser does this.

I imagine FireFox is doing this because it doesn't want users of Website A, which is a completely HTTPS site, to be sent to an insecure website.

Is this behavior documented somewhere? I'm not sure if it's related specifically to the HSTS header.

Scenario: https://websitea.com, available over HTTPS only, with HSTS header set. http://websiteb.com, available over HTTP only. https://websitea.com has a page that links directly to http://websiteb.com. Users can click this link and be sent there properly https://websitea.com has a different page which links to https://websitea.com/redirect-page. That page is just a redirect to http://websiteb.com. Users that click this link are sent to https://websiteb.com instead of http://websiteb.com. FireFox is upgrading the redirect from HTTP to HTTPS. No other browser does this. I imagine FireFox is doing this because it doesn't want users of Website A, which is a completely HTTPS site, to be sent to an insecure website. Is this behavior documented somewhere? I'm not sure if it's related specifically to the HSTS header.

所有回复 (8)

more options

Hello,

Try Firefox Safe Mode to see if the problem goes away. Firefox Safe Mode is a troubleshooting mode that temporarily turns off hardware acceleration, resets some settings, and disables add-ons (extensions and themes).

If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:

  • Click the menu button New Fx Menu, click Help Help-29 and select Restart with Add-ons Disabled.

If Firefox is not running, you can start Firefox in Safe Mode as follows:

  • On Windows: Hold the Shift key when you open the Firefox desktop or Start menu shortcut.
  • On Mac: Hold the option key while starting Firefox.
  • On Linux: Quit Firefox, go to your Terminal and run firefox -safe-mode
    (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)

When the Firefox Safe Mode window appears, select "Start in Safe Mode".

SafeMode-Fx35

If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems article to find the cause.

To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.

When you figure out what's causing your issues, please let us know. It might help others with the same problem.

由barashkoff于修改

more options

The behavior still exists in safe mode.

more options

Hello,

Certain Firefox problems can be solved by performing a Clean reinstall. This means you remove your Firefox program files and then reinstall Firefox. This process does not remove your Firefox profile data (such as bookmarks and passwords), since that information is stored in a different location.

To do a clean reinstall of Firefox, please follow these steps: Note: You might want to print these steps or view them in another browser.

  1. Download the latest Desktop version of Firefox from mozilla.org (or choose the download for your operating system and language from this page) and save the setup file to your computer.
  2. After the download finishes, close all Firefox windows (or open the Firefox menu New Fx Menu and click the close button Close 29).
  3. Delete the Firefox installation folder, which is located in one of these locations, by default:
    • Windows:
      • C:\Program Files\Mozilla Firefox
      • C:\Program Files (x86)\Mozilla Firefox
    • Mac: Delete Firefox from the Applications folder.
    • Linux: If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see Install Firefox on Linux. If you downloaded and installed the binary package from the Firefox download page, simply remove the folder firefox in your home directory.
  4. Now, go ahead and reinstall Firefox:
    1. Double-click the downloaded installation file and go through the steps of the installation wizard.
    2. Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.

More information about reinstalling Firefox can be found here.

WARNING: Do not use a third party uninstaller as part of this process. Doing so could permanently delete your Firefox profile data, including but not limited to, extensions, cache, cookies, bookmarks, personal settings and saved passwords. These cannot be easily recovered unless they have been backed up to an external device! See Back up and restore information in Firefox profiles.

Please report back to say if this helped you!

Thank you.

more options

Hello, a clean re-install made no difference either.

more options

Hello,

What extensions do you use in your Firefox?

more options

Why do you think it's related to my extensions? The problem is still there on a completely clean install without any extensions enabled.

more options

bkosborne said

Why do you think it's related to my extensions? The problem is still there on a completely clean install without any extensions enabled.

Did this clean install mean any and all previous FF was removed and the Mozilla folder deleted?

more options

Can you post a example link to web pages where this happens, so we can check the server response?