Many features of the web are not supported when in insecure contexts.
For example the crypto.subtle
API is undefined
if not running over https
.
I had been developing over localhost
and there is an exception here where the context is still considered secure, and everything was working fine.
However, now I am testing on my mobile device which means I am now connecting to 192.168.1.xxx
from my computer. Because of this, it is no longer a secure context, and I have lost access to certain APIs that I need.
How can I fix this? How can I test my application on my mobile device using my computer's IP address, with access to APIs that are only available in secure contexts?