1

在 Firefox 插件中从后台调用函数navigator.credentials.get({ publicKey })The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.会引发以下错误。

我找不到有关该问题的任何信息。有没有办法在 Firefox 插件脚本中使用 WebAuthn 函数?在 Chrome 扩展程序中,它可以正常工作。

4

1 回答 1

1

我努力让 webauthn 工作几个月,结果发现有一个愚蠢的 Firefox 错误,它会抛出一个误报——如果你打开控制台,它就不起作用。关闭控制台终于为我解决了。这是错误报告:

https://bugzilla.mozilla.org/show_bug.cgi?id=1479500

希望这会有所帮助,凯文

于 2020-07-13T00:12:21.703 回答