Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome : Native messaging Error: Access to the specified native messaging host is forbidden

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

I have added registry key

 HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.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.
like image 538
Nik Avatar asked Nov 26 '13 11:11

Nik


1 Answers

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>/"
]
like image 106
gkalpak Avatar answered Oct 04 '22 16:10

gkalpak