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

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

    For me, it worked without adding any of the additional APIs like google analytics. Just make sure to add the complete clientid and open the app in incognito window to avoid saving the cache. If already have opened the app in regular window, 1- Close all tabs that app is open at. 2- Clear the cache and cookies. In chrome, its in Settings --> Passwords and forms -> Clear Browsing data -> Advanced (tab) -> select a) Cookies and other site data and b) Cached images and files 3- Open a fresh incognito window and test your app.

    0 讨论(0)
  • 2020-12-23 14:50

    I was having the same issues as well until I realized when I copied the client_ID, there was white space in my file, so I removed the white space from the string and everything is working great now.

    0 讨论(0)
  • 2020-12-23 14:53

    As many have indicated here, this is just a browser caching issue. No need to create a new key, or even clear the cache. Just try again on a new browser incognito (anonymous) window and it should work fine.

    0 讨论(0)
  • 2020-12-23 14:53

    I believe this has to do with caching, try to Go to your browser and clear the cache, try: in chrome, > setting > advanced > clear browsing data :>: cached images and files.

    0 讨论(0)
  • 2020-12-23 14:55

    Clearing the cache did the trick for me

    0 讨论(0)
  • 2020-12-23 14:55

    Try Clearing cache it could be issue with cache/localstorage.

    0 讨论(0)
提交回复
热议问题