@plasmohq/storage doesn't work in Edge in iframe

From what I can tell, it's due to the localStorage being inaccessible by default I do have a feeling though that CSP can solve it
12 Replies
lab
lab•2y ago
So based on what I have investigated thus far frame cannot have allow-cross-origin The error is likely this:
Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag.
Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag.
I will need to investigate further as what's the possible storage mechanism for this... ;d...
Avi
AviOP•2y ago
I wonder if you could get an answer at https://www.reddit.com/r/edge/
reddit
r/edge
Avi
AviOP•2y ago
@louis Have you made some progress?
lab
lab•2y ago
not yet, also I'm flying tmr. I am seeing the issue in my own extension tho
Avi
AviOP•2y ago
Ok, I'll tune in for announcements At the very least, my extension is complete for now (minus the monetization part), so all I need is to wait for you to fix the issue and I can simply push the update
Avi
AviOP•2y ago
@louis Ok I fixed the issue and sadly it's not fixable from Plasmo's end In this Edge setting, if Strict is selected, the extension won't be able to access localStorage from within <iframe>
Avi
AviOP•2y ago
Credit to Bing AI for helping out
lab
lab•2y ago
oh wow
Arcane
Arcane•2y ago
@louis has reached level 42. GG!
lab
lab•2y ago
@stefan
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
lab
lab•2y ago
^ thought you might be interested, the AI cited their source as well eh
Want results from more Discord servers?
Add your server