Google API authentication: Not valid origin for the client

前端 未结 11 1549
暖寄归人
暖寄归人 2020-12-08 13:01

When making an auth request to the Google API (gapi), it\'s returning false on the checkOrigin.

I have removed any client id\'s or anything that would link directly

相关标签:
11条回答
  • 2020-12-08 13:24

    Credentials do not work if API is not enabled. In my case the next steps were needed:

    1. Go to https://console.developers.google.com/apis/library
    2. Enter 'People'
    3. From the result choose 'Google People API'
    4. Click 'Enable'
    0 讨论(0)
  • 2020-12-08 13:27

    Clear your browser cache. Started getting this error in Chrome and then I created a new client id and was still getting the issue. Opened firefox and it worked, so I cleared the cache on Chrome and it started working.

    0 讨论(0)
  • 2020-12-08 13:28

    Creating new oauth credentials worked for me

    0 讨论(0)
  • 2020-12-08 13:28

    Key Point: Add both http://localhost and http://localhost:port_number to the Authorized JavaScript origins box for local tests or development.

    0 讨论(0)
  • 2020-12-08 13:28

    Trying on a different browser(chrome) worked for me and clearing cache on firefox cleared the issue.

    (PS: Not add the hosting URIs to Authorized JavaScript origins in API credentials would give you Error:redirect_uri_mismatch)

    0 讨论(0)
  • 2020-12-08 13:32

    try clear caches and then hard reload, i had same error but when i tried to run on incognito browser in chrome it worked.

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