Need a workaround for cross domain ajax post in IE7

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

I forgot to mention, but I also manage another server.

+4
source share
2 answers

A simple XDM library was developed to solve the cross-origin problem:

easyXDM is a Javascript library that allows you, as a developer, to easily circumvent the restriction set by the Same Origin policy, which in turn simplifies the interaction and deployment of JavaScript APIs across domain boundaries.

I have not used it yet, but we may have to try it to solve the Http / HTTPS Ajax problem ...

Hope this helps.

Other topics of interest:

+2
source

Do it the old fashioned way: submit the form in an iframe using an external domain. You can listen to the onload event in the iframe to find out that it has completed.

Another option is to use a proxy server on the server side and publish it from there.

+1
source

Source: https://habr.com/ru/post/1413186/


All Articles