只要不限制Google API密钥,就可以通过Google进行社交登录。
当我限制API密钥时,我将域/网站地址添加到指定的网站以进行Google请求。
但是问题是在Google向其API进行身份验证请求时,没有设置参照源。采取行动后,出现以下致命错误。
Fatal error: Uncaught Google_ServiceException: Error calling GET (403). Requests from referer <empty> are blocked.
这意味着我必须设置引荐来源,但我什至无法尝试其他方法。在这方面的任何帮助将不胜感激!