Il codice del pulsante Google Plus avverte: "Tentativo JavaScript non sicuro di accedere al frame" in Chrome

StackOverflow https://stackoverflow.com/questions/8399915

Domanda

Sto cercando di aggiungere un pulsante Google Plus al mio sito e continua a ottenere avvisi di sicurezza JavaScript, nonostante il fatto che sto usando il codice consigliato di Google, su Chrome.

Ho riprodotto gli errori con il codice copiato direttamente da Google Webmaster Codice consigliato, senza altre aggiunte:

<html itemscope itemtype="http://schema.org/">
<head>
<meta itemprop="name" content="Title">
<meta itemprop="description" content="Description">
</head>
<body>
<g:plusone annotation="inline"></g:plusone>
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')\[0\]; s.parentNode.insertBefore(po, s);
  })();
</script>
</body>

Carica questo in Chrome (15 su Mac) e lo sviluppatore Console avverte:

Unsafe JavaScript attempt to access frame with URL http://mydomain.com/ 
from frame with URL https://plusone.google.com/_/+1/fastbutton?url=http%3A%2F%2Fmydomain.com%2F&size=standard&count=true&annotation=inline&hl=en-US&jsh=m%3B%2F_%2Fapps-static%2F_%2Fjs%2Fwidget%2F__features__%2Frt%3Dj%2Fver%3Dt6mt7PFQYRQ.en_GB.%2Fsv%3D1%2Fam%3D!agWx4Vf_ACSIFA91ZQ%2Fd%3D1%2F#id=I1_1323174311773&parent=http%3A%2F%2Fmydomain.com&rpctoken=352111652&_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe. 
Domains, protocols and ports must match.

Il codice del webmaster di Google è semplicemente non sicuro? O ho fatto qualcosa di sbagliato?

È stato utile?

Soluzione

Questo è un avviso comune lanciato dai plugin sociali. I plugin di Twitter e Facebook di solito lanciano anche questo avvertimento. Puoi ignorarlo in sicurezza.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top