I have read, it is possible to do any cross-domain AJAX requests if only the server allows this explicitly. Now we are using a JavaScript program trying to send huge POST data to a virtual server running in a exe-file written in Delphi, using Indy library. The URL is 127.0.0.1:8084, the JavaScript program is embedded in a HTML, which is opened from the hard drive (so its URL is C:\Blabla...).
Of course there is the cross origin policy which makes it impossible to fulfill our task.
Any advices? Which headers we need to set in JavaScript? Which settings must be set in Indy?