如何告诉 Firefox 信任 "xxx.localhost" 作为安全来源?

How to tell Firefox to trust "xxx.localhost" as a secure origin?

在上周左右(与 Firefox 75 发布时间大致相同),使用 auth0-spa-js 的示例应用程序 (Rabbit) 的本地开发在 Firefox 中开始失败并出现以下错误:

auth0-spa-js must run on a secure origin.
  See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin 
  for more information. 

由于一些问题我不太记得细节,我一直在使用 rabbit.localhost(在我的 hosts 中有一个条目将该主机解析为 127.0.0.1 ) 用于我的本地开发。

Firefox 似乎信任 "localhost" 作为 "secure origin",但不信任“*.localhost”类型的地址。 “.localhost”地址似乎在 Chrome.

中工作正常

问题: 有没有办法让 Firefox 接受特定的 "xxx.localhost" 作为安全来源?

目前,我的解决方法是返回使用 Chrome 进行本地开发。

此问题现已在版本 84 中修复: https://news.ycombinator.com/item?id=25431563