我正在尝试从 Jquery/Javascript 对 google OAuth API 进行 HTTPS 调用:
https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile&state=<STATE>&redirect_uri=<HTTPS REDIRECT URI>&response_type=token&client_id=<CLIENT_ID>
它正在取消 HTTP,而不是路由到谷歌登录页面。
使用 chrome://net-internals 进行调试显示浏览器正在接收来自 Google API 的“302 Moved Temporarily”响应,其中包含以下位置标头:
location: https://accounts.google.com/ServiceLogin?service=lso&passive=1209600...
但是浏览器无法跟随重定向,并且在 net-internals 中会出现以下错误:
t=1378152699506 [st=57] -HTTP_TRANSACTION_READ_HEADERS
t=1378152699506 [st=57] HTTP_CACHE_WRITE_INFO [dt=0]
t=1378152699506 [st=57] +URL_REQUEST_BLOCKED_ON_DELEGATE [dt=1]
t=1378152699506 [st=57] SPDY_STREAM_UPDATE_RECV_WINDOW
--> delta = -847
--> stream_id = 11
--> window_size = 10484913
t=1378152699507 [st=58] CANCELLED
t=1378152699507 [st=58] -URL_REQUEST_START_JOB
--> net_error = -3 (ERR_ABORTED)
t=1378152699508 [st=59] -REQUEST_ALIVE
谁能帮助解释为什么 chrome 无法遵循重定向?URL_REQUEST_BLOCKED_ON_DELEGATE 是什么意思?