Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

168
Vistas
Sharing localstorage between iframe and website being shown in iframe

I have a website example.com. example.com is embeded in an iframe on example2.com. I fill in some data in the iframe, this data is saved in localstorage on example.com.

Now if i navigate to examle.com, this data persists. Meaning it is sharing localstorage with the iframe, which makes sense because it is the same website, however, this only works in chrome, in firefox and safari, the data does not persist.

So to be clear, i dont want to share data between example.com and example2.com i just want the localstorage to persist on example.com regardless of it being in an iframe or being accessed directly.

Thanks

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

LocalStorage is intended to store data on client's browser and, because of this, stored data are equated to third-party cookies when saved by resources coming from external domains.

Currently (Jan 2022) browsers are dropping support (in terms of both availabilty and durability) of third-party cookies and you probably should expect Chrome will behave in the same way in the near future (see here).

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda