Open hyfydistro opened 2 years ago
I just want to transfer certain data and display it on the client safely.
How are you defining "safely"?
You can use messaging to send data to and from ServiceWorker
from content script.
@patrickkettner @AmySteam can you assign it to me please?
@Hanaffi, could you share some more about what you are proposing for a sample?
@oliverdunk we can do message passing using chrome.tabs.sendMessage
and listening for it on the other side.
We can also do asymmetric encryption of the message but I think it would be an overkill because I think this message passing API is safe enough, thoughts?
@oliverdunk ?
Agreed that encryption would be too much here. We already have an Action API demo. Perhaps you could update that with some simple functionality where the popup gets some data by messaging the background?
Currently, I'm unable to access the Chrome Extension Group so I will post here.
I'm just wondering if anyone knows how to grab data from the service worker (background script) and receive it at the popup page. I am using airtable and it has some sensitive information for the configuration I don't want to leak out so I have it setup in my background script. I just want to transfer certain data and display it on the client safely.
Is there any available examples?