Watch out with public TLD's in combination with locally-hosted sites and self-signed certs. For
For example "mysite.dev"mysite.dev with a self-signed certificate was causing a HSTS error in all my browsers (Chrome, Edge and Firefox). When iI switched to a non-public TLD, for example "mysite.localdev"mysite.localdev it worked like a charm.