How to set manifest V3 file when popup use fetch in firefox ver115?

When my manifest.json file is V2

Manifest_version: 2,
...
...
Permissions:[

https://*/*

],

The popup page fetch request is well.

When changing to V3

Manifest_version: 3,
...
...
Host_permissions:[

https://*/*

],

The popup page fetch request is reporting an error.

CORS Mission ‘Access Control Allow Origin’

TypeError: NetworkError when attacking to fetch resource

however, chrome ver115 or edge ver115 is well.

When pasting code here, place triple backticks (```) on the line above and below the code, that will activate code format.

Regarding the issue - sadly, in MV3 in Firefox the host permissions needs to be manually granted by user:

You can use this API to ask user to grant the permissions:

1 Like

Thank you very much for your answer !

1 Like