• monogram@feddit.nl
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months ago

    IIRC an iframe contents is treated as a separate window, so cookies aren’t shared either

    • Cosmicomical@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 months ago

      Sure, but the separate window can be on a different domain. Now you have a way to share cookies across multiple websites on different domains if all of them include an iframe to this external domain. And you can use in-browser messages (see window.postMessage()) to communicate between iframes and main window.