I have a webpage that uses an api webservice to get info. The calls are to a different domain than my page so I get errors like below. I have no control over the webservice so I can't alter it at all. I found some links that mention using jsonp, which I tried but the webservice does not respond to. I know I can do things to the browser, but I want it to work for anyone. Is there a creative way around this like by doing it on another page and lazy loading it? I am really not sure, but there must be a way. I can see in fiddler that the call returns the xml correctly, but the js still errors.
in' header is present on the requested resource. Origin 'null' is therefore not allowed access.
//dataType: "xml", //IT WILL WORK WITH OMMITTED BUT WORKS WITH TOO
//dataType: 'jsonp', //IT WON'T WORK WITH JSONP
type: "POST", //NEED POST FOR THE WEBSERVICE TO RETURN A VALID RESPONSE IN FIDDLER
//contentType: 'application/json', //DOES NOT WORK WITH