'Prevent 3rd party extension from sending messages to my extension / add filter to runtime.onConnectExternal and runtime.onMessageExternal
I have 2 extensions that must communicate with each other over runtime.sendMessage / runtime.connect. However, I worry that this exposes a gateway for foreign extensions to try to communicate with our own. I know I can just check for the sender inside the event handlers. Nonetheless, I still fear that if another extension starts spamming my own it may create havoc. I would rather find a way to completely ban an extension that behaves this way from communicating with ours.
Does anyone have a clue how to achieve this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
