ngx-store icon indicating copy to clipboard operation
ngx-store copied to clipboard

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

Open Bozonych opened this issue 6 years ago • 2 comments

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 )

Bozonych avatar Jun 08 '18 16:06 Bozonych

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...

DanielKucal avatar Jun 09 '18 23:06 DanielKucal

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

Bozonych avatar Jun 11 '18 09:06 Bozonych