![](/img/trans.png)
[英]Chrome Native Messaging — Why am I receiving a “Specified native messaging host not found” error?
[英]Chrome : Native messaging Error: Access to the specified native messaging host is forbidden
我正在运行Native messaging示例应用程序。 ( http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/nativeMessaging/ )。
我添加了注册表项
HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.google.chrome.example.echo
当我连接到本机主机时,我收到错误:
Failed to connect: Access to the specified native messaging host is forbidden.
根据文档,您需要在NativeMessagingHost的清单中明确为其扩展访问权限:
"allowed_origins": [
"chrome-extension://<your_extension's_ID>/"
]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.