无法在'DOMWindow'上执行'postMessage'

时间:2014-07-09 21:14:08

标签: jquery

我需要从浏览器中读取QR码。我正在关注这个网站

http://webqr.com/index.html

我复制了它的全部来源,当我看到它运行时,创建了它已经获得的js文件。

我在控制台中看到了这个异常

Refused to display 'https://apis.google.com/_/+1/fastbutton?usegapi=1&size=medium&origin=file%3…refresh&id=I0_1404940232729&parent=file%3A%2F%2F&pfname=&rpctoken=26934941' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin ('null').

任何人都可以让我知道如何解决这个问题吗?

0 个答案:

没有答案