Iframe localStorage access?

2,462 views
Skip to first unread message

Inter Net

unread,
Oct 25, 2020, 7:54:58 AM10/25/20
to Chromium Extensions
I want that an iframe writes to the localStorage of my app(browser extension) is this possible?

PhistucK

unread,
Oct 25, 2020, 8:03:42 AM10/25/20
to Inter Net, Chromium Extensions
If the iFrame shows an extension page, then it should be possible. Otherwise, nope, you will have to pass a message to the extension and the extension will access localStorage.

PhistucK


On Sun, Oct 25, 2020 at 1:55 PM Inter Net <zela...@gmail.com> wrote:
I want that an iframe writes to the localStorage of my app(browser extension) is this possible?

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/75c4af14-ebea-4135-98ba-09384f346896n%40chromium.org.

Inter Net

unread,
Oct 25, 2020, 8:31:30 AM10/25/20
to Chromium Extensions, PhistucK, Chromium Extensions, Inter Net
it is a complete other domain https://mybackend.com/, so there is no way for  https://mybackend.com/  to write the localStorage of the extension did I understand this correct?

PhistucK

unread,
Oct 25, 2020, 8:39:48 AM10/25/20
to Inter Net, Chromium Extensions
Correct.

PhistucK

guest271314

unread,
Oct 25, 2020, 10:30:54 AM10/25/20
to Chromium Extensions, PhistucK, Chromium Extensions, zela...@gmail.com
Two options are to write to a local file or clipboard then access the data from the other origin.
Reply all
Reply to author
Forward
0 new messages