[英]IE9 CORS - xdomain: Timeout waiting on iframe socket
I'm trying to do a CORS on ie9 using我正在尝试在 ie9 上使用 CORS
ie9proxy.html: ie9proxy.html:
<!DOCTYPE HTML>
<script src="https://apiurl/Content/xdomain.min.js"></script>
"xdomain: Timeout waiting on iframe socket" “xdomain:超时等待 iframe 套接字”
Hint: my ie9.proxy.html doesnt return the "X-Frame-Options" header提示:我的 ie9.proxy.html 不返回“X-Frame-Options”标题
<!--[if lte IE 9]>
<script src="https://apiurl/Content/xdomain.min.js"></script>
<script>
xdomain.slaves({
"https://apiurl": "/Content/ie9proxy.html"
});
</script>
<![endif]-->
What am I doing wrong?我究竟做错了什么?
Need to set up your Masters in proxy.html as below:需要在 proxy.html 中设置您的 Master,如下所示:
<script src="/dist/xdomain.min.js"></script>
<script>
xdomain.masters({
"http://*.example.com": "/api/*.json"
});
</script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.