Unable to log in to Sitecore Docker-based development instance in Mozilla Firefox


Description

When a user logs in to development Docker deployment in Mozilla Firefox, using default hostnames with the "localhost" subdomain might result in the following browser error:

Unable to connect

The root cause of the issue is that Mozilla Firefox ignores HSTS, and fails to redirect from HTTP to HTTPS with HTTP 307 Internal Redirect. 

For example, the default hostname with the "localhost" subdomain for Sitecore XM topology is:

Solution

To resolve this issue, consider the following steps:

  1. Replace the "localhost" hostname in the .env file with something different. For example, change your "localhost" subdomain to "mydevdomain" for the previous Sitecore XM topology:
    • CD_HOST=xm1cd.mydevdomain
    • CM_HOST=xm1cm.mydevdomain
    • ID_HOST=xm1id.mydevdomain
  2. Generate new certificates for the site:

Refer to KB1003588 for more details on the issue in Google Chrome.