Google+互动邮寄无法在Chrome中使用

时间:2014-06-24 12:54:40

标签: javascript google-chrome google-api google-plus

我已在我的应用中实施了Google+互动帖子(https://developers.google.com/+/web/share/interactive)。为了说明我在Google Interactive post Button shows blank white screen on Click中引用示例的问题,那就是http://wheresgus.com/signindemo/iposthide.html。这在Firefox中运行良好,但在Chrome中显示:

Refused to display 'https://accounts.google.com/ServiceLogin?service=oz&passive=1209600&continu…_renderstart&id=I1_1403614198124&parent=http%3A%2F%2Fwheresgus.com&pfname=' in a frame because it set 'X-Frame-Options' to 'DENY'.

enter image description here

我已经跟踪了Firefox的HTTP请求,

GET https://apis.google.com/u/0/_/sharebox/dialog?editorText=Engage%20your%20users%20today%2C%20create%20a%20Google%2B%20page%20for%20your%20business.&inviteClientId=268858962829.apps.googleusercontent.com&callToActionLabel=CREATE&callToActionUrl=http%3A%2F%2Fplus.google.com%2Fpages%2Fcreate&callToActionDeepLinkId=%2Fpages%2Fcreate&dl_id=%2Fpages&isInteractivePost=true&claimedOrigin=http%3A%2F%2Fwheresgus.com&url=https%3A%2F%2Fplus.google.com%2Fpages%2F&prm=url&sts=hwv1x4v6&susp=true&wpp=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en.3HA5LF3whL8.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Fz%3Dzcms%2Frs%3DAItRSTPqd-NPfqj6jzLbjV0fjMRqWJ9acQ#rpctoken=361198737&_methods=_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart&id=I1_1403725501411&parent=http%3A%2F%2Fwheresgus.com&pfname= HTTP/1.1
    Host: apis.google.com
    User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-US,en;q=0.5
    Accept-Encoding: gzip, deflate
    Referer: http://wheresgus.com/signindemo/iposthide.html
    Cookie: NID=67=MZpKXT6q_7a8P5orfOrGIgHGbbBzeXU92eANpIrUDaHGux_02wJvCK2IUp7zhobhdcdc-tBPCsjdLjuT8DERfTJ09GB8TjQkPnYQrKSQYizHOm0oBHZtWUnsRlcX-vV5eY2KZH6A7FEZauDTNy12MjBqJPVNFtlxe-twesjkgjGk7H0S8UisSqpsmRkKNpFsljggI89VUo7s7QufwVz0xF-ss-XMa0o; PREF=ID=6118332b913466de:U=4a136263e66d9a02:FF=4:LD=en:NW=1:TM=1403552635:LM=1403554390:GM=1:S=jExb8Zu_iMiUNyT2; SID=DQAAAMcAAADfKvvbi4vGK0-ahmojNby7HKG95xuWC94joymHPUIpYEUG-U3os0ogo4VB8gZ1zNS11rMGiAP1YqTDhi34grVasEIq5-luZR-ifq7vk1qlI7CEd2i44lnqGqI_8L8W7zDZdn4tWxwvtXm_C28TL_nQMg7aegy881V7CQTS8MCC5EOAShoyB9nB6Ke4N8cQVKwbS0-Z8fUVAwzg13VzPXFN8r0HMu7Tmi2BWW7QsMB0Ofgrp45ug5U1C07TTiCdZvnWcHw6uowc1eEbXXIDF98M; HSID=Afm2nf4Qhc6V_kQz7; SSID=Aif9-60YguYxxdtKP; APISID=x6SrMGReSEQZ9q4t/AsUn00ICVxYaDdCnB; SAPISID=nx2QXMue8jlWzQXF/A1KT8So_foKd0cmly; OTZ=2356993_34_34__34_

    HTTP/?.? 200 OK
    Cache-Control: no-cache, no-store, max-age=0, must-revalidate
    Content-Encoding: gzip
    Content-Type: text/html; charset=utf-8
    Date: Wed, 25 Jun 2014 19:45:02 GMT
    Expires: Fri, 01 Jan 1990 00:00:00 GMT
    Pragma: no-cache
    Server: GSE
    X-Content-Type-Options: nosniff
    x-ua-compatible: IE=edge, chrome=1
    X-XSS-Protection: 1; mode=block
    X-Firefox-Spdy: 3.1

参数,

editorText: Engage your users today, create a Google+ page for your business.
inviteClientId: 268858962829.apps.googleusercontent.com
callToActionLabel: CREATE
callToActionUrl: http://plus.google.com/pages/create
callToActionDeepLinkId: /pages/create
dl_id: /pages
isInteractivePost: true
claimedOrigin: http://wheresgus.com
url: https://plus.google.com/pages/
prm: url
sts: hwuh5751
susp: true
wpp: 1
jsh: m;/_/scs/apps-static/_/js/k=oz.gapi.en.3HA5LF3whL8.O/m=__features__/am=AQ/rt=j/d=1/z=zcms/rs=AItRSTPqd-NPfqj6jzLbjV0fjMRqWJ9acQ#rpctoken=723967717
_methods: _ready,_close,_open,_resizeMe,_renderstart
id: I1_1403690605679
parent: http://wheresgus.com
pfname: 

来自Chrome的请求就是这样,

Remote Address:125.214.167.48:443
Request URL:https://apis.google.com/_/sharebox/dialog?editorText=Engage%20your%20users%20today%2C%20create%20a%20Google%2B%20page%20for%20your%20business.&inviteClientId=268858962829.apps.googleusercontent.com&callToActionLabel=CREATE&callToActionUrl=http%3A%2F%2Fplus.google.com%2Fpages%2Fcreate&callToActionDeepLinkId=%2Fpages%2Fcreate&dl_id=%2Fpages&isInteractivePost=true&claimedOrigin=http%3A%2F%2Fwheresgus.com&url=https%3A%2F%2Fplus.google.com%2Fpages%2F&prm=url&sts=hwuh23ac&susp=true&wpp=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en_GB.mrSIGy2_k-g.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Fz%3Dzcms%2Frs%3DAItRSTNUgnUJf6kgRzC6jW35sxTQfDlMLg
Request Method:GET
Status Code:302 Moved Temporarily
Request Headers
:host:apis.google.com
:method:GET
:path:/_/sharebox/dialog?editorText=Engage%20your%20users%20today%2C%20create%20a%20Google%2B%20page%20for%20your%20business.&inviteClientId=268858962829.apps.googleusercontent.com&callToActionLabel=CREATE&callToActionUrl=http%3A%2F%2Fplus.google.com%2Fpages%2Fcreate&callToActionDeepLinkId=%2Fpages%2Fcreate&dl_id=%2Fpages&isInteractivePost=true&claimedOrigin=http%3A%2F%2Fwheresgus.com&url=https%3A%2F%2Fplus.google.com%2Fpages%2F&prm=url&sts=hwuh23ac&susp=true&wpp=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en_GB.mrSIGy2_k-g.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Fz%3Dzcms%2Frs%3DAItRSTNUgnUJf6kgRzC6jW35sxTQfDlMLg
:scheme:https
:version:HTTP/1.1
accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
accept-encoding:gzip,deflate,sdch
accept-language:en-US,en;q=0.8
referer:http://wheresgus.com/signindemo/iposthide.html
user-agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/34.0.1847.116 Chrome/34.0.1847.116 Safari/537.36
Query String Parametersview sourceview URL encoded
editorText:Engage your users today, create a Google+ page for your business.
inviteClientId:268858962829.apps.googleusercontent.com
callToActionLabel:CREATE
callToActionUrl:http://plus.google.com/pages/create
callToActionDeepLinkId:/pages/create
dl_id:/pages
isInteractivePost:true
claimedOrigin:http://wheresgus.com
url:https://plus.google.com/pages/
prm:url
sts:hwuh23ac
susp:true
wpp:1
jsh:m;/_/scs/apps-static/_/js/k=oz.gapi.en_GB.mrSIGy2_k-g.O/m=__features__/am=AQ/rt=j/d=1/z=zcms/rs=AItRSTNUgnUJf6kgRzC6jW35sxTQfDlMLg
Response Headersview source
cache-control:private, max-age=0
content-encoding:gzip
content-length:590
content-type:text/html; charset=UTF-8
date:Wed, 25 Jun 2014 10:01:00 GMT
expires:Wed, 25 Jun 2014 10:01:00 GMT
location:https://accounts.google.com/ServiceLogin?service=oz&passive=1209600&continue=https://apis.google.com/_/sharebox/dialog?editorText%3DEngage%2Byour%2Busers%2Btoday,%2Bcreate%2Ba%2BGoogle%252B%2Bpage%2Bfor%2Byour%2Bbusiness.%26inviteClientId%3D268858962829.apps.googleusercontent.com%26callToActionLabel%3DCREATE%26callToActionUrl%3Dhttp://plus.google.com/pages/create%26callToActionDeepLinkId%3D/pages/create%26dl_id%3D/pages%26isInteractivePost%3Dtrue%26claimedOrigin%3Dhttp://wheresgus.com%26url%3Dhttps://plus.google.com/pages/%26prm%3Durl%26sts%3Dhwuh23ac%26susp%3Dtrue%26wpp%3D1%26jsh%3Dm;/_/scs/apps-static/_/js/k%253Doz.gapi.en_GB.mrSIGy2_k-g.O/m%253D__features__/am%253DAQ/rt%253Dj/d%253D1/z%253Dzcms/rs%253DAItRSTNUgnUJf6kgRzC6jW35sxTQfDlMLg%26gpsrc%3Dgplp0
p3p:CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."
server:GSE
set-cookie:NID=67=ZObcazb61hkw9gkpvi3NxI9ESatku_Mzxyjn6e1y3H64Gs5D3ZdP7RovisjTtAo3J_KMB2YlJD9q7wWymi5JmtcMfR4bIT8-QOaa1eNR_Kp0rT7vwVjLbnwfQAbkb_Ob;Domain=.google.com;Path=/;Expires=Thu, 25-Dec-2014 10:01:00 GMT;HttpOnly
status:302 Moved Temporarily
version:HTTP/1.1
x-content-type-options:nosniff
x-frame-options:SAMEORIGIN
x-xss-protection:1; mode=block

对于Firefox,我得到200 OK,但对于Chrome,我得到302 Moved。

这里有什么问题?

0 个答案:

没有答案