Google sign in website Error : Permission denied to generate login hint for target domain

CKS picture CKS · Aug 17, 2015 · Viewed 12.4k times · Source

I am trying to integrate Google login in my website ..

I am following this example: https://developers.google.com/identity/sign-in/web/

I generated client id for my project and replaced it in above code, I keep getting this error:

  1. That’s an error.

Error: invalid_request

Permission denied to generate login hint for target domain.

Answer

kevinstueber picture kevinstueber · Aug 25, 2015

I ran into this issue while doing local development. Make sure when running your project locally that you launch "http://localhost" rather than "http://127.0.0.1", "http://0.0.0.0", etc...