Thursday, May 3, 2012

jQuery CORS plugin

We have moved to a GitHub project the jQuery plugin we have developped at Ovea to support CORS for IE8+.

This implementation adds transparent CORS support for jQuery (through XDomainRequest) and is able to pass cookies and headers such as JSESSIONID, PHP Session, and all others you want.

It is also able to support custom error code: default IE implementation only returns HTTP code 200 but with this one you'll be able to support any HTTP code.

See https://github.com/Ovea/cors

2 comments:

  1. Now just pray for the death of IE7. We'll bury it alongside IE6.

    ReplyDelete
  2. Hi Mathieu,
    Perhaps my comment is not related to this post...but am posting so as to get your attention to my query.

    I read your post Reverse Ajax on IBM's site. It was indeed what I was looking for.
    I am looking for reliable delivery using Comet technique and CometD suits the requirement using long polling. but since long polling is kind of a hack and server sent events seem to be more apt I think Atmosphere framework is also good to evaluate. But there is no support for reliable delivery in Atmosphere.
    You have mentioned that we can write a CometD plugin using Atmosphere. Can you please give me more pointers on that? Or you have any other suggestion.

    Appreciate all you help.
    TIA
    ~Jyoti

    ReplyDelete