拒绝显示' https://accounts.google.com/o/oauth2/auth?client_id= ******'在一个框架中因为它设置了X-Frame-Options'到' SAMEORIGIN'。
click here to see the chrome console error
在auth.js中执行googleApiClientReady()代码
// Upon loading, the Google APIs JS client automatically invokes this callback.
googleApiClientReady = function() {
gapi.auth.init(function() {
window.setTimeout(checkAuth, 1);
});
}
答案 0 :(得分:1)
尝试类似
的内容gapi.auth.authorize({ client_id:clientId, 范围:范围, 立即:立即 },handleAuthResult);