Skip to content

Instantly share code, notes, and snippets.

@floatingatoll
Last active November 20, 2023 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save floatingatoll/d57a724c078a41417f94d4ce9d2bdfa9 to your computer and use it in GitHub Desktop.
Save floatingatoll/d57a724c078a41417f94d4ce9d2bdfa9 to your computer and use it in GitHub Desktop.
Firefox reports HSTS + HTTPS-to-HTTP redirects as a redirect loop

If you have ERR_TOO_MANY_REDIRECTS / "The page isn't redirecting properly" in Firefox, but your network console doesn't show any obvious loops, and your site includes HSTS / HTTP-Strict-Transport-Security headers;

Then you may have an https:// request that contains an Location: http:// response, which Firefox will occasionally refuse to upgrade to https://.

Update the redirect destination to https:// and see if that solves your problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment