将* .googleusercontent.com添加到授权的JavaScript来源 [英] Add *.googleusercontent.com to Authorized JavaScript origins

查看:195
本文介绍了将* .googleusercontent.com添加到授权的JavaScript来源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们为Google表格提供了一个附加组件,并希望为某些功能切换其他Google帐户.

We have an add-on for Google Sheets and would like to switch other Google accounts for some functions.

一年半前,我成功地将URL(https://***.googleusercontent.com)添加到授权的JavaScript来源和URL(

Half a year ago, I successfully added a URL (https://***.googleusercontent.com) to Authorized JavaScript origins and a URL (https://oauth-redirect.googleusercontent.com/r/\*\*\*) to Authorized redirect URIs.

但是现在我们不能了,因此,它一直在显示

But now we can't and, therefore, it keeps showing

授权错误(错误:400:redirect_uri_mismatch).

Authorization Error (Error:400: redirect_uri_mismatch).

当我尝试添加此URL(https://***.googleusercontent.com)时,它会显示

When I try to add this URL(https://***.googleusercontent.com), it shows

"保存失败!请求失败,因为资源的字段之一无效."

"Save failed! The request failed because one of the field of the resource is invalid."

我不知道规则是否更改以及我应该怎么做.有关详细信息,请参见屏幕截图.谢谢!

I don't know whether the rules changed and what should I do. See the screenshot for details. Thanks!

错误消息:请求中的JavaScript来源https://***.googleusercontent.com与为OAuth客户端授权的来源不匹配.

Error Message: The JavaScript origin in the request, https://***.googleusercontent.com, does not match the ones authorized for the OAuth client.

推荐答案

我遇到了同样的问题,因为从十月份开始,我不允许使用* .googleusercontent.com作为授权来源.

I have the same problem, since October I am not allowed to use *.googleusercontent.com as Authorized origin.

我在Issue Tracker上进行了举报,但他们的回答只是感谢您的举报,不幸的是Issuetracker并不是处理您报告的合适论坛".

I reported it on Issue Tracker, but their answer simply was "Thank you for your report, unfortunately Issuetracker is not the proper forum to address your report".

我通过在外部网站(Github页面)上插入Google登录按钮(至少是暂时解决了此问题),并在登录后将用户重定向到我的* .googleusercontent.com页面,并插入了登录令牌在网址中作为参数.

I solved this problem (At least temporarily) by inserting the Google sign-in button on an external site (Github pages) and once logged, redirect the user to my *.googleusercontent.com page with the sign-in token inserted in the URL as a parameter.

这篇关于将* .googleusercontent.com添加到授权的JavaScript来源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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