最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Chrome : Native messaging Error: Access to the specified native messaging host is forbidden - Stack Overflow

programmeradmin2浏览0评论

I am running the Native messaging sample app. (/).

I have added registry key

 HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\NativeMessagingHosts\.google.chrome.example.echo

When i am connecting to native host i am getting error:

Failed to connect: Access to the specified native messaging host is forbidden.

I am running the Native messaging sample app. (http://src.chromium/viewvc/chrome/trunk/src/chrome/mon/extensions/docs/examples/api/nativeMessaging/).

I have added registry key

 HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\NativeMessagingHosts\.google.chrome.example.echo

When i am connecting to native host i am getting error:

Failed to connect: Access to the specified native messaging host is forbidden.
Share Improve this question edited Jul 3, 2014 at 9:51 FuzzyAmi 8,1476 gold badges52 silver badges79 bronze badges asked Nov 26, 2013 at 11:46 NikNik 7022 gold badges8 silver badges28 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 14

According to the docs you need to explicitely give your extension access to the NativeMessagingHost in the latter's manifest:

"allowed_origins": [
    "chrome-extension://<your_extension's_ID>/"
]

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论