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

460
Vistas
Failed to read the 'localStorage' property from 'Window': Access is denied

My website www.abc.com

I am using iframe in www.abc.com with <iframe src="www.xyz.com"></iframe>

I am facing the below issue

Issue :

Failed to read the 'localStorage' property from 'Window': Access is denied for this document.

How to solve the issue with only using source code (Angularjs(V 1.X), Javascript, jQuery, HTML), without touching browser settings manually.

Is there any way to change browser settings(set allow cookies) via source code or server side settings?

www.abc.com , www.xyz.com both website localstorage used indivudually, I am not accessing localstorage from one website to other.

When i open the iframe page i am facing the issue "Failed to read the 'localStorage' property from 'Window': Access is denied for this document."

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

0

I had the same question, you maybe change your chrome cookie setting

this is the document link

about 4 years ago · Juan Pablo Isaza Denunciar

0

The following snippet accesses the current domain's local Storage object and adds a data item to it using Storage.setItem().

 localStorage.setItem('myCat', 'Tom');

The syntax for reading the localStorage item is as follows:

const cat = localStorage.getItem('myCat');

Kind refer to the following documentation

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