Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample: transfer data (sensitive api) from background to popup #774

Open
hyfydistro opened this issue Nov 10, 2022 · 6 comments
Open

Sample: transfer data (sensitive api) from background to popup #774

hyfydistro opened this issue Nov 10, 2022 · 6 comments
Assignees

Comments

@hyfydistro
Copy link

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?

@guest271314

This comment was marked as off-topic.

@Hanaffi
Copy link

Hanaffi commented Feb 28, 2024

@patrickkettner @AmySteam can you assign it to me please?

@oliverdunk
Copy link
Member

@Hanaffi, could you share some more about what you are proposing for a sample?

@Hanaffi
Copy link

Hanaffi commented Mar 1, 2024

@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?

@Hanaffi
Copy link

Hanaffi commented Mar 4, 2024

@oliverdunk ?

@oliverdunk
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants