我正在开发与Google日历互动的Chrome扩展程序.我已经开源了,代码可以在GitHub上找到:https://github.com/joshholat/Add-to-Calendar-Chrome-Extension
它需要使用Google的oAuth进行授权才能编辑用户日历.直到最近,这工作正常.然而,有一天它出于某种原因停止了工作.当我执行以下代码时,它会从oauth打开一个新选项卡,该选项卡应该请求权限,但页面永远不会加载,而是冻结"重定向...".因此,我无法授权和测试我的代码.
想法?
var oauth = ChromeExOAuth.initBackgroundPage({
'request_url': 'https://www.google.com/accounts/OAuthGetRequestToken',
'authorize_url': 'https://www.google.com/accounts/OAuthAuthorizeToken',
'access_url': 'https://www.google.com/accounts/OAuthGetAccessToken',
'consumer_key': 'anonymous',
'consumer_secret': 'anonymous',
'scope': 'http://www.google.com/calendar/feeds/',
'app_name': 'Add Events to Google Calendar'
Run Code Online (Sandbox Code Playgroud)
});
oauth.authorize(function(){alert("auth");});