This is a nifty way to test environments that are live, but live behind Basic Authentication.
- Download ngrok.
- Install this node application
For a user admin with the password admin at http://staging.mywebsite.com`, you would update the following:
- Edit
proxy.jsand rename the following placeholders <your website>tohttp://staging.mywebsite.com<your username>toadmin<your password>toadmin
$ npm i(server will now be running onlocalhost:3000)- Run ngrok:
$ ngrok http localhost:3000which spins up an ngrox proxy to localhost (which points to your website) - Copy the URL in the first "Forwarding" propery below.
- Paste it in this page - https://developers.google.com/speed/pagespeed/insights/
Tunnel Status online
Update update available (version 2.1.18, Ctrl-U to update)
Version 2.0.25/2.1.18
Region United States (us)
Web Interface http://127.0.0.1:4040
Forwarding http://xxxxxxxx.ngrok.io -> localhost:3000
Forwarding https://xxxxxxxx.ngrok.io -> localhost:3000
Connections ttl opn rt1 rt5 p50 p90
0 0 0.00 0.00 0.00 0.00