Sunday, June 2, 2024
123
rated 0 times [  127] [ 4]  / answers: 1 / hits: 30768  / 7 Years ago, thu, september 28, 2017, 12:00:00

This is really embarassing



on virtually any site on the internet,



window.crypto.subtle


returns



SubtleCrypto {}
__proto__: SubtleCrypto


in the chrome console (v61 (Official Build) (64-bit))



except for



my webpage, and blank.org



where



window.crypto.subtle


returns



undefined


according to https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subtle
it's a read-only property that should always return a SubtleCrypto object.



what could I have done, or what has blank.org done that it could possibly not?



ps: in firefox it seems to work as intended on both my site and blank.org


More From » google-chrome

 Answers
2

According to the spec (via Github issues) a la this Google page for WebCrypto:




crypto.subtle is supposed to be undefined in insecure contexts



[#56364] Monday, September 25, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cristinadomoniquel

Total Points: 320
Total Questions: 94
Total Answers: 94

Location: Moldova
Member since Sat, Aug 6, 2022
2 Years ago
cristinadomoniquel questions
Wed, Apr 7, 21, 00:00, 3 Years ago
Tue, Dec 1, 20, 00:00, 4 Years ago
Mon, Nov 23, 20, 00:00, 4 Years ago
Mon, Aug 17, 20, 00:00, 4 Years ago
;