Testing "Use Current Location"

June 19, 2020

The Use Current Location javascript functions don't work on insecure URLs in current versions of Chrome. This caused me problems as I had a local webserver hosting my site that wasn't protected by https.

There is an exemption when using localhost but this didn't help in my particular scenario.

It's possible to add additional hostnames this will work for with a command line option:

C:\>"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --unsafely-treat-insecure-origin-as-secure="http://fullstack.test/"

This allowed me to test the functionality on my development VM.