4

So IE7 does not support CORS (cross origin resource sharing). However, due to nature of my app, I have to make a cross domain ajax post. Is there some way to get this to work in IE7? Unfortunately, I cannot use a server side proxy for security reasons. Perhaps using an iFrame?

I forgot to mention, but I control the other server also.

1
  • 1
    It's post not a get. JSONP only supports GET requests right? Commented May 18, 2012 at 14:59

2 Answers 2

2

The Easy XDM library was developed to solve the cross origin problem :

easyXDM is a Javascript library that enables you as a developer to easily work around the limitation set in place by the Same Origin Policy, in turn making it easy to communicate and expose javascript API’s across domain boundaries.

I didn't use it yet, but we might have to try it to solve a Http / HTTPS Ajax call problem...

Hope that helps.

Other threads of interests :

Sign up to request clarification or add additional context in comments.

2 Comments

Update from the Easy XDM site - it no longer works w/ IE6 and 7
Possible solution, as linked on easyXDM website : How to upgrade
1

Do it the old fashioned way: post the form to an iframe using the external domain. You can listen to the onload event on the iframe to know it has completed.

The other option is to use a server-side proxy and post it from there.

3 Comments

If I use an iFrame, is there a way to communicate between the current document and the iframe?
No. The Same Origin Policy prevents this. All you get is the onload event for the Iframe itself.
easyXDM does it by internally using the postMessage API

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.