Chrome : Native messaging Error: Access to the specified native messaging host is forbidden
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>/"]