I have a REST end of my API at the following address : http://test.jll.aplikacje-dedykowane.pl/rest/warehouse/all . Now I'm trying to return the JSON data prepared at this page but I'm constantly getting null (with 200 OK) as a result.

我的API的其余部分位于以下地址:http://test.jll.aplikacje-dedykowane。pl / rest /仓库/。现在,我尝试返回这个页面准备的JSON数据,但结果总是为null (200 OK)。

var getSearchResults = function(){
    var url = '',
    data = '';      
    url = 'http://test.jll.aplikacje-dedykowane.pl/rest/warehouse/all';

    $.getJSON(url, function(data){
        console.log(data);
    });

}

1 个解决方案

#1


1

You're probably running into the same site origin policy, assuming that url is outside of the domain that calling it.

假设url位于调用它的域之外,您可能会遇到相同的站点起源策略。

更多相关文章

  1. 已开启GTID的情况下的binlog复制切换到GTID复制可能会遇到的问题

随机推荐

  1. Python 3.9,来了!
  2. 用了这个jupyter插件,我已经半个月没打开
  3. Jupyter Notebook & Lab快捷键大全
  4. 掌握pandas中的transform
  5. Vaex :突破pandas,快速分析100GB大数据集
  6. 纯Python绘制满满艺术感的山脊地图
  7. 来,一起打卡!
  8. JavaScript中的持续传递风格 [每日前端夜
  9. 【开发者必看】移动应用趋势洞察白皮书-
  10. 在模仿中精进数据可视化03:OD数据的特殊可