谷歌浏览器62.0.3202.94 gapi.auth2.getAuthInstance().signIn popup_closed_by_user [英] Google Chrome 62.0.3202.94 gapi.auth2.getAuthInstance().signIn popup_closed_by_user

查看:349
本文介绍了谷歌浏览器62.0.3202.94 gapi.auth2.getAuthInstance().signIn popup_closed_by_user的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试从文档中获取样本 https://developers.google.com/identity/protocols/OAuth2UserAgent#example 我们可以从弹出对话框中选择一个帐户, 但 登录时不要在Google Chrome版本62.0.3202.94中授权

Try sample from documentation https://developers.google.com/identity/protocols/OAuth2UserAgent#example We could select an account from popup dialog, but SignIn don't autorize in Google Chrome version 62.0.3202.94

在本文档的示例中,我收到了错误消息,代码为"popup_closed_by_user"

In my example bilding by this documentation I got the error message with code "popup_closed_by_user"

在Google Chrome版本62.0.3202.94中 方法

In Google Chrome version 62.0.3202.94 method `

gapi.auth2.getAuthInstance().signIn(options).then(
    function(resp) {
     var auth_code = resp.code;
    },
function(resp) {
     var auth_code = resp.code;
});

`

得到错误响应"popup_closed_by_user",并且不授权用户 相同的代码在最旧的chrome版本和其他浏览器中都可以正常工作

got error response "popup_closed_by_user" and don't autorize user the same code works fine in oldest chrome version and in other browsers

推荐答案

答案 转到chrome://settings/content/cookies,即阻止第三方Cookie"设置. https://github.com/google/google-api-javascript-客户/问题/357

answer was found Go to chrome://settings/content/cookies, the "Block third-party cookies" setting. https://github.com/google/google-api-javascript-client/issues/357

这篇关于谷歌浏览器62.0.3202.94 gapi.auth2.getAuthInstance().signIn popup_closed_by_user的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆