I want to make a GET request to a website in a different domain for some required data. It seems I cannot do this with a normal javascript ajax request because of cross site scripting security restrictions on web browsers.
As a workaround I thought I could perhaps make a javascript ajax request to my own custom handler or web page and have that instead make the request to another domain for data and return that.
I have been looking at new HttpRequest and HttpWebRequest as possible solutions but HttpRequest constructor requires a file parameter. Why? I don't want to do any I/O.
Is it possible to do this with HttpRequest?
HttpWebRequest looks like it will make an async request which I assume will fail anyway after it tries to reach a different domain (haven't tried it yet though) and I am not sure how to tell my client side javascript to wait for the handler's async response...
I hope I have explained my problems and inten ...
Go to the complete details ...