I want to bypass CORS Policy to GET data XML from another domain. I try so much but have no luck. There are:
- JSONP : By this way, i don't know how to use it. Because XML Construction is difference from JSONP Construction. If yes, please help me how to use JSONP to get data XML from another domain.
- Proxy: Cause of my project is ASP.NET Framework 4.0. So, i create a proxy page and use it to get XML. Example: http://localhost:4030/proxy.aspx?u=http://onotherdomain.com/data.xml . But i can't get data with a basic protected site. It's allways return 401 unauthorized.
For you, JSONP is faster or Proxy is Faster ?
Thanks for watching ?