ISV 页面ajax 跨域访问 RRS feed

  • 问题

  • 在ISV下添加新的页面,执行如下跨域访问方法时,提示 jquery 权限拒绝,是什么问题? 在服务器上本机执行的时候能通过。

    function GetJSON() {
                var remoteUrl = "http://外部ip/webservice/getextinfo.php?ext=8017&json=1";
                    async: false,
                    cache: false,
                    url: remoteUrl,
                    error: function () {
                        return false;
                    success: function (msg) {
                        try {
                        } catch (exception) {

    2012年8月22日 2:46


  • Hi.

    在你的方法外,添加一条语句 = true;



    2012年8月23日 8:50
  • I don't think you can do that.

    Try this:

    1. Deploy something into same CRM server under ISV folder that will be called by your javascript.

    2. Using the one that you just deployed into ISV folder to relay your jquery to "http://外部ip/webservice/getextinfo.php?ext=8017&json=1";

    That way, you don't break the CRM security such as cross domain scripting and you get what you want because the access is not from the client side, it's on server side from your ISV sub folder.

    • 已建议为答案 .frank 2012年9月11日 19:37
    2012年9月11日 19:37