Sometimes you need to run your app locally and use HTTPS. Below are steps that
worked for me.
Install http-server
npm i -g http-server
Create a local certificate and key
openssl req -x509 -out localhost.crt -keyout localhost.key -newkey rsa:2048
-nodes -sha256 -subj '/CN=localhost' -extensions