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 #50

Open
Bozonych opened this issue Jun 8, 2018 · 2 comments

Comments

@Bozonych
Copy link

Bozonych commented Jun 8, 2018

If i run app with excluded Cookies in Chrome, i have this error.

Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
_165
Help me please )

@DanielKucal
Copy link
Member

How would you like to have this solved? I think the action will depend on the application, maybe we should allow to pass an error handler function...

@Bozonych
Copy link
Author

Error occurs at the stage:

import { NgModule } from '@angular/core';
import { WebStorageModule } from 'ngx-store';

@NgModule({
  imports: [
    WebStorageModule,
  ],
})
export class AppModule {}

Even if you do not use this module.

Therefore, in my opinion, it is worth checking whether the available localStorage for module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants