https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging
While Chrome lists allowed_origins as an array of "chrome-extension" URLs, Firefox's app manifest requires allowed_extensions as an array of app IDs.
Specify your add-on ID explicitly. Use the browser_specific_settings manifest key. (The app's manifest will identify the set of extensions that allow connecting to the IDs).
Note: Chrome does not support the browser_specific_settings key. You will need to use another manifest without this key to install an equivalent WebExtension on Chrome. See Chrome incompatibilities below.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging
While Chrome lists
allowed_originsas an array of "chrome-extension" URLs, Firefox's app manifest requiresallowed_extensionsas an array of app IDs.Specify your add-on ID explicitly. Use the browser_specific_settings manifest key. (The app's manifest will identify the set of extensions that allow connecting to the IDs).
Note: Chrome does not support the browser_specific_settings key. You will need to use another manifest without this key to install an equivalent WebExtension on Chrome. See Chrome incompatibilities below.