繁体   English   中英

Chrome:本机消息传递错误:禁止访问指定的本机消息传递主机

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM