Google API: Not a valid origin for the client: url has not been whitelisted for client ID “ID”

前端 未结 17 1476
北海茫月
北海茫月 2020-12-23 14:34

I need help. I don\'t found an answer to my question. I tried googling and I tried asking on other sides but I never found an answer.

I\'m working with the google API

17条回答
  •  囚心锁ツ
    2020-12-23 14:49

    I was having a similar issue trying to get a login for my web app. What I did was just recreate the OAuth Client ID credentials from Cloud Platform. When I did this and used the new Client ID, everything worked fine. Not sure what the issue was before, but it goes through perfectly fine now.

    If anyone finds this from Google or whatnot, try that. It might just work. It would explain Ezra Obiwale's answer because that is essentially creating a new Client ID just after adding a couple API's.

    If anyone knows an explanation as to why this happens that would be appreciated.

提交回复
热议问题