Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to read the 'localStorage' property from 'Window': Access is denied #14052

Open
dragonmetrics opened this issue May 25, 2022 · 2 comments

Comments

@dragonmetrics
Copy link

Summary
we use Iframe to load the report in browser incognito mode, but it shows Failed to read the 'localStorage' property from 'Window': Access is denied in Console. do you know how to solve this?
image

@connorjclark
Copy link
Collaborator

connorjclark commented May 25, 2022

URL or jsfiddle?

@dragonmetrics
Copy link
Author

dragonmetrics commented May 26, 2022

here is html content for test.

<iframe style="position: relative; z-index: 2; height: 1900px; width: 100%; border: none;" src="https://googlechrome.github.io/lighthouse/viewer/?jsonurl=https://gist.githubusercontent.com/Kikobeats/d570a1aa285c5d1d97bbda10b92fb97f/raw/4b0f14a5914edd25c95b4bd9d09728ab42181c3e/lighthouse.json"></iframe>

please save it as html.

  1. open in browser (no problem)
  2. open in incognito mode, will see the error above on the "Console" and can not load the report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment