SessionStorage in iframe

I will have several iframes on my page and I will use sessionStorage inside them intensively. What interests me is if I have separate repositories or one iframe common to all? How are size limits applied?

+4
source share
2 answers

Ok, I did the test myself. At least in Chrome (44) and Firefox (40), sessionStorage is common to the page, and iframes are included if they have the same domain and do not have if they have different domains.

+8
source

sessionStorage , iframe , URL. - http://myserver/test.html http://thatserver/some.html iframe, iframe thatserver. , , sessionStorage . iframe http://myserver/some.html, .

: sandbox iframe. <iframe sandbox> allow-same-origin, iframe . , , . <iframe sandbox="allow-same-origin"> iframe ( ).

: iframe localStorage . webkit- mozilla firefox , iframe sessionStorage.

+3

All Articles