Fetching data from local JSON File in angularjs

后端 未结 3 1960
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-25 13:41

I want to fetch data from JSON file which is on my local machine. But I am not able to get the data. It is showing some cross domain error for $http.

Here is my code

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-25 14:13

    If you haven't already done so. Try setting up a crossdomain policy for your application.

提交回复
热议问题