asmcrypto / asmcrypto.js

JavaScript Cryptographic Library with performance in mind.
MIT License
659 stars 182 forks source link

Unit Test with Jest (node.js) and insecure origin warning. #128

Closed nakwa closed 6 years ago

nakwa commented 6 years ago

Hi,

I am looking for a way to disable the insecure origin warning when running my test suite (Jest on Node.js).

console.warn node_modules/asmcrypto.js/asmcrypto.js:5
      asmCrypto seems to be load from an insecure origin; this may cause to MitM-attack vulnerability. Consider using secure transport protocol.

In that case global.location.protocol is set to about:. Any thoughts ?

Thanks !

alippai commented 6 years ago

I'm not familiar with Jest. Can you help me why is the protocol set to about:?

alippai commented 6 years ago

Just removed the origin warning related code in 2.0