mercredi 25 novembre 2020

Secure origin except localhost for web developments

I am developing a PWA, I have to fix some bugs that only occurs in iOS devices,I am dealing with WebRTC and unfortunately iOS emulators has no camera, Also real devices not supported port forwarding!

So my developing machine is different with testing device, and there is no option to have localhost, I'm using local invalid IP to access web app in testing device, but unfortunately only localhost and https is secure context and some functions like getUserMedia only works in secure context

it's very hard to build and deploy to a https server to fix iOS/safari related bugs

How can I create a secure context for development, I need some developments tools such as hot reload to fix a damn Safari/WebRTC freeze issue




Aucun commentaire:

Enregistrer un commentaire