AKASHAorg / secure-webstore

A secure IndexedDB store with built-in encryption
MIT License
44 stars 6 forks source link

Getting Master Key not Initilized error #11

Closed VamsiKrishnaMyneni closed 3 years ago

VamsiKrishnaMyneni commented 3 years ago

hi,

  1. I am Getting Master Key not Initialized error when I released the code to Testing Environment
  2. I am only using secure-store.js and including in the bundle (asp.net)
  3. shall I include any other library file in my solution because in Localhost it works fine but not when I deployed to QA environment

MicrosoftTeams-image

  1. in the init().catch() block below error returned error cropped
deiu commented 3 years ago

Hi,

You are probably trying to run this code on a non-secure connection (i.e. not HTTPS). The browser's native Webcrypto API (the one used by the library) blocks access to the crypto functions when not running over HTTPS. The only exception is for localhost.

deiu commented 3 years ago

I will close this issue assuming it resolved.