简体   繁体   English

kendo ui上传在部署时无法在IE9中使用

[英]kendo ui upload not working in IE9 at deployment

I'm using Kendo Ui uploader and WebAPI call to upload a file. 我正在使用Kendo Ui上传器和WebAPI调用来上传文件。 The process im doing goes fine on all browsers even on IE9 locally (localhost), but once i deploy the same code on another domain and i use the kendo upload in IE9 (only in IE9 there's problem), kendo goes directly to the error function and replies with an error message : 我在所有浏览器上所做的过程即使在本地IE9(本地主机)上都可以正常运行,但是一旦我在另一个域上部署了相同的代码并且我在IE9中使用了kendo上传(仅在IE9中就出现了问题),kendo就会直接进入错误功能并回复错误消息

' Server response: Error trying to get server response: Error: Access is denied.'

Although the webapi method is returning an http response of 201(created), and i set the content type header to "text/plain", plus i'm sending in the body of the http response a json string. 尽管webapi方法返回的HTTP响应为201(已创建),并且我将内容类型标头设置为“文本/纯文本”,另外,我还在http响应的正文中发送了json字符串。 I tried so many things ( one of it is configuring X-Frame-Options in IIS ) but couldn't make it work. 我尝试了很多事情( 其中之一是在IIS中配置X-Frame-Options ),但是无法使其正常工作。 Any ideas would be appreciated. 任何想法,将不胜感激。 Thanks. 谢谢。

The answer is here “Access is denied” error on accessing iframe document object 答案是在访问iframe文档对象时出现“访问被拒绝”错误

[...] "So it turns out, that if a response is sent with an error code, IE replaces the content of the iframe with an error message loaded from the disk (res://ieframe.dll/http_500.htm), and that causes the cross-domain access denied error. by Ovesh" [...]“事实证明,如果发送的响应带有错误代码,则IE会使用从磁盘加载的错误消息(res://ieframe.dll/http_500.htm)替换iframe的内容。 ,并导致跨域访问被拒绝错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM