开发者

XMLHTTPRequest over an SSL Connection

开发者 https://www.devze.com 2023-03-27 04:42 出处:网络
I have troubles to call this method: myXmlHttpRequest.send(data); It\'s because, the Webservice is HTTPS! How to bypass it? In C# I did it, to ignore the SSL-Certificate-Things, but how in JavaScri

I have troubles to call this method:

myXmlHttpRequest.send(data);

It's because, the Webservice is HTTPS! How to bypass it? In C# I did it, to ignore the SSL-Certificate-Things, but how in JavaScript?

Something like this:

obj开发者_如何学PythonXMLHttpRequest.mozBackgroundRequest = true;

gave me an Security Error Code 1000.


It's because of same origin policy. Javascript wont allow you to hit the webservice. To do a workaround you can write an intermediate proxy to your same server and hit that with xmlhttprequest. The proxy inturn will hit your webservice. As you already mentioned you have done it in c#. Your proxy can be written in that then.

0

精彩评论

暂无评论...
验证码 换一张
取 消