我在google的oauth2.0控制台中设置了一个客户端应用程序,用Google日历验证我的网站。我收到以下错误:
error:
"idpiframe_initialization_failed"
details:
"Not a valid origin for the client: http://www.heaolumassage.com has not been whitelisted for client ID 245143078821-1reoo9h3ch0334pi6sddp52cnnotl316.apps.googleusercontent.com. Please go to https://console.developers.google.com/ and whitelist this origin for your project's client ID."
但是,我在客户端ID的配置中设置了原点:
Authorized JavaScript origins
For use with requests from a browser. This is the origin URI of the client
application. It can't contain a wildcard (http://*.example.com) or a path
(http://example.com/subdir). If you're using a nonstandard port, you must
include it in the origin URI.
http://www.heaolumassage.com
http://heaolumassage.com
我还可以使用本地计算机上的服务器中的相同代码成功进行身份验证。还有其他地方必须指明原产地吗?