Third party asmx web service Call giving Error "No 'Access-Control-Allow-Origin' header is present on the requested resource". RRS feed

  • Question

  • I have a situation where I have to call a third party asmx web service in my Javascript web resource. 

    I used AJAX call and also Normal XMLHTTPRequest call.
    Service Call returns and error saying "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 404". 
    Web service config settings are not accessible to us.

    The Web service Call runs fine on IE provided I enable Cross domain settings under Internet options.

    Customer has a requirement where he don't want to change any browser settings neither we have access to Web service config.

    So, is there any way I can achieve my desired output. Any specific Soap header which will over come this problem or any other way which will make this Web service call Successful.

    I know one method where I can use an intermediate WCF service. but Customer doesn't have to use this method.

    Thanks in Advance !!!

    Monday, October 12, 2015 6:07 AM