开发者

cross domain service call to retrieve some html causing IE security popup

开发者 https://www.devze.com 2023-04-12 05:15 出处:网络
I am calling a web service using jquery which sits on another domain. The web service is returning some html. The 开发者_Python百科problem is every time I make the service call I get a security popup

I am calling a web service using jquery which sits on another domain. The web service is returning some html. The 开发者_Python百科problem is every time I make the service call I get a security popup in IE saying that you are accessing information which is not in control of the current site. I cannot use jsonp because the service is returning text/xml.

Is there a way to avoid this popup since changing the service call to return json is not something I control.

Thanks, Kunal


Nope you can't to bypass the Same Origin Policy unless the web service implements Cross-Origin Resource Sharing.

0

精彩评论

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

关注公众号