I am using Angular 17. I have deployed my Angular project on IIS. Everything was good till I used MSAL services (Microsoft login) in my project. Then I published it again, and then I faced this error. (The crypto object or function is not available.)
-
1Any chance that your app is running in HTTP context? MSAL only supports HTTPS.– JSON DeruloCommented Dec 12 at 15:52
-
Here's the browser compatibility chart - note that "Secure context required" is true for all modern browsers.– D MCommented Dec 12 at 15:54
-
Similar: Web Crypto API without ssl– D MCommented Dec 12 at 15:56
-
Not a perfect duplicate, but close: Blazor WASM error: 'window.crypto.randomUUID is not a function'– D MCommented Dec 12 at 15:58
-
ohh , i don't have the ssl certificate .. must i have it to fix the problem ?– SnoopCommented Dec 12 at 16:06
|
Show 1 more comment