简体   繁体   中英

kendo ui upload not working in IE9 at deployment

I'm using Kendo Ui uploader and WebAPI call to upload a file. 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 :

' 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. I tried so many things ( one of it is configuring X-Frame-Options in IIS ) but couldn't make it work. Any ideas would be appreciated. Thanks.

The answer is here “Access is denied” error on accessing iframe document object

[...] "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"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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