标签: javascript javascript-events cross-browser security
在chrome中运行html文件时出现此错误 iframe不安全JavaScript尝试从URL为http://my_server.com/param的帧中访问包含URL ttp://another_server/example.html的帧。域,协议和端口必须匹配。
http://my_server.com/param
ttp://another_server/example.html
有没有办法可以在不同的服务器上运行javascript?
答案 0 :(得分:0)
您需要更改hash而不是url本身。关于此问题,stackoverflow中有许多类似的问题。 You can try check this out。
hash
url