我正在研究與Google日曆交互的Chrome擴展程序。我已經開源了,代碼可以在GitHub上找到:https://github.com/joshholat/Add-to-Calendar-Chrome-ExtensionChrome擴展程序oAuth請求重定向頁面無法加載
它需要使用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'
});
oauth.authorize(函數(){ 警報( 「AUTH」); });