我该如何解决这个问题?
IE上的访问被拒绝:( jquery.form.js)
IE上的访问被拒绝:( jquery.form.js)
=> if (io.contentwindow.document.execCommand) { try { // #214 io.contentwindow.document.execCommand('Stop'); } catch(ignore) {} }
解决方法
我今天遇到了同样的问题.
However this issue has been documented
This happens because of the IE “friendly error messages” “feature”. For HTTP 4xx and 5xx responses IE replaces the content of the IFRAME with its friendly error message and in so doing changes the domain of the frame. When the plugin tries to access the response document it fails due to the same-origin policy,which causes the plugin to treat the request as aborted
由于这种安全限制,IE js解释器在访问io.contentwindow.document时会出现安全异常.
try { // #214 if (io.contentwindow.document.execCommand) io.contentwindow.document.execCommand('Stop'); } catch (ignore) { }
我在生产中有这个修复,我没有在IE8 / IE9中发现任何负面影响