开发者

XMLHTTPRequest over an SSL Connection

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜