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

前端 未结 17 1674
北海茫月
北海茫月 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

    Had the same problem and here's how I solved it:

    1. Activate both Analytics and Google Plus APIs on your project
    2. Create new OAUTH 2.0 client credentials
      • Add the Authorized Javascript Origins under Restrictions section
    3. Use the new client id.

    Enjoy.

提交回复
热议问题