Why .NET ASMX web service on secure.site.com can't be called from www.site.com?

Posted by user118657 on Stack Overflow See other posts from Stack Overflow or by user118657
Published on 2010-05-12T13:49:10Z Indexed on 2010/05/12 13:54 UTC
Read the original article Hit count: 269

Filed under:

Hello,

We have a web service on https://secure.site.com/service.asmx it works fine from https://secure.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.

© Stack Overflow or respective owner

Related posts about asmx