Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

459
Views
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 answers
Answer question

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!