我想通过 iframe 传输发送带有文件和一些文本字段的发布请求。
(jquery-file-uload + jquery.iframe-transport)
主页面的 url http: //192.168.1.36:3001/index.html
。请求网址是http: //192.168.1.36:3001/api/upload
.
等问题。
附加信息:
browser: ie 9.0.8112.16421
headers of /index.html:
Cache-Control:no-cache
Cache-Control:public, must-revalidate, proxy-revalidate
Connection:keep-alive
Content-Encoding:gzip
Content-Type:text/html
Date:Thu, 25 Sep 2014 19:34:41 GMT
Expires:Thu, 25 Sep 2014 19:34:40 GMT
Last-Modified:Thu, 25 Sep 2014 19:17:41 GMT
P3P:CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"
Pragma:public
Server:nginx/1.6.2
Transfer-Encoding:chunked
Vary:Accept-Encoding
domain in iframe is 192.168.1.36, domain in main page is same (192.168.1.36)
但是"SCRIPT5 Access denied" in "form[0].submit()"
。我换了"form.submit()" to "form[0].submit()"
。
我还尝试在表单中添加一个特殊的提交按钮并尝试触发(“点击”)。不工作。
可能吗??
谢谢