CORS and IE problem

3 posts, 1 answers
  1. Answer
    Rafael
    Rafael avatar
    8 posts
    Member since:
    Dec 2007

    Posted 21 Mar 2013 Link to this post

    Hello everybody,
    I continue with my KendoUI evaluation. With the help of Rosen (thank you again) I fixed the PUT, DELETE verbs problem (you can see it in this thread), but that solution only worked in Chrome, I found a more complex solution here (http://blogs.msdn.com/b/carlosfigueira/archive/2012/07/02/cors-support-in-asp-net-web-api-rc-version.aspx) and then I have finally make my project work in all browsers but IE.
    Debugging with Fiddler I realized that the browser didn't send the HTTP request. With the help of this article (http://www.kendoui.com/blogs/teamblog/posts/11-10-03/using_cors_with_all_modern_browsers.aspx) and this javascript (https://github.com/dkastner/jquery.iecors/blob/master/jquery.iecors.js) I transformed the XHR request to a XDR one, and now the bowser issues the request correctly and receives the answer in JSON format, but the grid doesn't show the registers (others browsers like Opera, FireFox and Safari work OK).
    You can reproduce this behaviour downloading my test project from (https://github.com/ragare62/AriUserManagement) and loading AriUMSolution, starting AriUMWebApi and AriUMWebHtml. If you load UserGrid.shtml you can see what I'm talking about.
    Again, any help would be appreciate, I think I'm near to the end but I can't fix this problem.
    By the way, I'm experiencing a bug in this forum and I can't read my own threads  after post them. I return to the previous page when I try to read them, I can read other threads without problem.
    Best regards.
  2. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 21 Mar 2013 Link to this post

    Hi Rafael,

    It seems that the iecors may not work as expected. Thus, you may try some other similar plugin for example this one.

    Regards,
    Rosen
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Rafael
    Rafael avatar
    8 posts
    Member since:
    Dec 2007

    Posted 25 Mar 2013 Link to this post

    Hi Rosen,
    You're right, with this JS it Works in all IE editions.
    Thank you very much.
Back to Top