Google recaptcha在浏览器扩展中
我正在尝试将Google Recaptcha添加到我的V3浏览器扩展程序(react)中,但似乎不可能在我的index.html < head>
标签中使用类似的外部脚本
<script defer src="https://www.google.com/recaptcha/enterprise.js?render=**RECAPTCHA_KEY**"></script>
。 a href =“ https://developer.chrome.com/docs/extensions/mv3/intro/mv3-overview/#remotely-hostely-host-code-code-code-c ro =“ nofollow noreferrer” doc/extensions/mv3/intro/mv3-overview/#远程托管代码
A key security improvement in Manifest V3 is that extensions can't load remote code like JavaScript or Wasm files.
This lets us more reliably and efficiently review the safe behavior of extensions when they're submitted to the Chrome Web Store.
Specifically, all logic must be included in the extension's package.
Instead of remote code, we recommend the use of remote configuration files.
See the migration guide for more about how to work with this change.
有关如何使其工作的任何提示?
先感谢您!
I'm trying to add google reCaptcha to my V3 browser extension (react) but seems like it's impossible to use external scripts like this in my index.html <head>
tag
<script defer src="https://www.google.com/recaptcha/enterprise.js?render=**RECAPTCHA_KEY**"></script>
There is an info here https://developer.chrome.com/docs/extensions/mv3/intro/mv3-overview/#remotely-hosted-code
A key security improvement in Manifest V3 is that extensions can't load remote code like JavaScript or Wasm files.
This lets us more reliably and efficiently review the safe behavior of extensions when they're submitted to the Chrome Web Store.
Specifically, all logic must be included in the extension's package.
Instead of remote code, we recommend the use of remote configuration files.
See the migration guide for more about how to work with this change.
Any tips on how to to make it work?
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论