chrome.storage.sync.get from web page

后端 未结 1 1071
温柔的废话
温柔的废话 2021-01-25 04:02

Hello guys,

I want to be able to access informations stored in chrome.storage.sync from an inline script within a web page, injected by my extension.

When trying

相关标签:
1条回答
  • 2021-01-25 04:52

    Since your injected script is essentially the same as the page's own code from a security perspective, there's no way to make this task easy.

    externally_connectable that you found is one of the ways to do it.

    The other way is to talk with the content script itself. You can do so with custom events or window.postMessage.

    0 讨论(0)
提交回复
热议问题