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

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

Open
ashishkpoudel opened this issue Oct 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ashishkpoudel
Copy link

I am using the updated version of "@amplitude/analytics-browser": "^2.9.3" where the fix for the reported issue was released.

The issue still exists and results in an unexpected error, which crashes the application
#793

Expected Behavior

Amplitude library should handle the error in case of Access denied for the document

Current Behavior

It results in an un-expected error when trying to access localStorage

Possible Solution

Steps to Reproduce

image

Environment

  • JS SDK Version: ^2.9.3
  • Installation Method: Yarn
  • Browser and Version: Chore mobile 128.0.0 | 129.0.0 (there might be even more versions but this is where it fails for us)
@ashishkpoudel ashishkpoudel added the bug Something isn't working label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant