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
Credentials do not work if API is not enabled. In my case the next steps were needed:
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.
Creating new oauth credentials worked for me
Key Point: Add both http://localhost and http://localhost:port_number to the Authorized JavaScript origins box for local tests or development.
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)
try clear caches and then hard reload, i had same error but when i tried to run on incognito browser in chrome it worked.