We have a web service on https://secure.site.com/service.asmx it works fine from https://secure.开发者_JAVA百科site.com/consumer.html
but when we try to use it from https://www.site.com/consumer.html we can't do it. Getting 403 error.
I'ts probably something related to webservice security (because of different subdomains) but I can't figure out what. How to make https://secure.site.com/service.asmx be accessible from https://www.site.com/consumer.html?
Update: Calling webserivce using JQuery Ajax.
$.ajax({
type: "POST",
url: "https://secure.site.com/service.asmx/method",
data: {},
dataType: "xml",
success: method_result,
error: AjaxFailed
})
;
Thanks.
I recall working on something like this. I just made a demo app and recall having to add something like the following in one of the htlm pages within a javascript block:
document.domain: "*.site.com"; or "site.com";
details are fuzzy and it maybe for another issues I had, but its something to go on.
精彩评论