Search code examples
javascriptgoogle-signingoogle-identity

Why is Google's Yolo tool giving me an unsupportedBrowser error?


I'm using Google's You Only Login Once tool (googleyolo) on my webpage. It worked fine when testing on localhost, but as soon as I pushed to the server, I started getting an unsupportedBrowser error. This error isn't mentioned on their Troubleshooting page, nor is it in the list of possible errors. I'm using the same browser (Chrome v63.0.3239.84) to hit both pages. According to the troubleshooting page, Chrome is a supported browser.


Solution

  • This is an absolutely terrible error message - the problem lies nowhere near your browser or the support for it. Rather, the issue lies in the fact that Google's one-tap signup/signin tooling requires a page loaded over a secure connection (i.e. https). localhost is considered 'secure' for ease of debugging, which is why it worked there but not when you loaded the page from an actual server.