AJAX XMLHttpRequest POST X-Domain

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-05-08T15:08:37Z Indexed on 2010/05/08 15:18 UTC
Read the original article Hit count: 210

Hi Guys,

I am sending an AJAX request using POST over X-Domain for a widget we are producing for our website. The problem we are facing is that this is getting blocked.

My question is - for "modern browsers" [Chrome, Safari, FF, IE8] - it is my understanding that setting "Access-Control" headers

Access-Control-Allow-Origin: http://www.test.com
Access-Control-Allow-Methods: POST, GET, OPTIONS
Access-Control-Allow-Headers: *
Access-Control-Max-Age: 1728000

Will allow these "POST" requests to work ? But for IE7 we need to implement some "custom" JSONP solution?

Am I correct in this ?

© Stack Overflow or respective owner

Related posts about xmlhttprequest

Related posts about jsonp