Answer the question
In order to leave comments, you need to log in
How to upload code to an extension from manifest v3?
It is known that in manifest v3 there are more stringent requirements for the execution of remote code.
However , the possibility of loading a certain "configuration file" in JSON format is mentioned here .
Literally:
"...your extension loads a remote configuration (such as a JSON file) at runtime and caches the configuration locally. The extension then uses this cached configuration to decide which features to enable."
En:
"...your extension loads a remote configuration (for example a JSON file) at runtime and caches the configuration locally. The extension then uses this cached configuration to decide which features to enable."
Is there an example of loading such JSON? And what is done next in this case - is eval used?
If you know another way to execute remote code, please share an example. We need the ability to quickly update the parser - without updating the entire extension.
Answer the question
In order to leave comments, you need to log in
It says above what and what to change:
Examples here:
https://developer.chrome.com/docs/extensions/mv3/c...
In short for v3:
No code can be downloaded remotely, it must be in the extension itself initially.
All you can do is upload a JSON that will control the availability of certain functions for use.
JSON can be a bunch of bool switches, which, for example, block / unblock some code. The code itself must be in the extension.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question