We have an ASP.Net application located on our network and working with a specific client. This client wants to be able to import data from his server into our application. Data is retrieved using an HTTP request and formatted in CSV format. The problem is that they do not want to open their server on our network and request that the import be performed on the client side (all clients from the same network as their server).
So what you need to do is:
- They request an import page from our server.
- The client script on the page issues a request to its server to receive data in CSV format
- Data is sent back to our application.
This is not a problem when both servers are in the same domain: a simple hidden iframe or something similar will do the trick, but what I get is a cross-domain access error. They also refuse to change the data format to return data in JSON or XML format.
What I have tried and learned so far:
- Hidden iframe - "access denied"
- XMLHttpRequest - the behavior depends on the browser security settings: it can work, it can work when you click on a user with security warnings, or you canβt work at all
- Dynamic script tags - would work if they could return data in JSON format
- data binding to IE client - same "denied access" error
Is there anything else I can try before giving up and saying that this is not possible without exposing their server to our application, changing their data format or changing browser security settings? (By the way, the DNS trick is not an option).
source share