Nik*_*Nik 2 javascript google-chrome google-chrome-extension chrome-native-messaging
我正在运行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
Run Code Online (Sandbox Code Playgroud)
当我连接到本机主机时,我收到错误:
Failed to connect: Access to the specified native messaging host is forbidden.
Run Code Online (Sandbox Code Playgroud)
根据文档,您需要明确地授予您的扩展访问后者清单中的NativeMessagingHost:
"allowed_origins": [
"chrome-extension://<your_extension's_ID>/"
]
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
4188 次 |
最近记录: |