Skip to content

Instantly share code, notes, and snippets.

@jordanrios94
Created April 19, 2023 15:22
Show Gist options
  • Save jordanrios94/cf573bc237a4838f340b9dbf85836945 to your computer and use it in GitHub Desktop.
Save jordanrios94/cf573bc237a4838f340b9dbf85836945 to your computer and use it in GitHub Desktop.

http:// is not allowed

Please follow instructions below on how to setup https://

Start a development server with https proxy

Install mkcert for creating a valid certificate (Mac OS):

$ brew install mkcert
$ mkcert -install
$ mkcert localhost

Then install and run the proxy

$ npm install -g local-ssl-proxy
$ local-ssl-proxy --source 3010 --target 3000 --cert localhost.pem --key localhost-key.pem

https is now running on port 3010 and forwarding requests to http 3000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment