I'm using window.crypto.subtle.importKey() for one of the authentication process in my app. Its working when i ran it on node server but its not working when i hosted it on IIS.
Error:
importKey of undefined (Till window.crypto i'm getting)
I found answer for this problem. Chrome restricts the usage of WebCryptographyApi to secure origins. It means 'https'. localhost is a special address enabled for development. Therefore, to use WebCrypto in a real environment you need to setup a SSL/TLS server