my json file like this
[{
"code": "Free",
"type": "base",
"name": "Start",
"price": "Free",
"subscriptionunit": "month",
"subscriptionqty": 1,
"customizable": false
}]
This json file in separate server and my web server another server I coded like this to get json detail from same same server and same project.
$http({
method: 'GET',
url: './json/priceplan.json',
dataType: "json",
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
"Access-Control-Allow-Headers": "Content-Type, X-Requested-With",
"Content-Type": "text/json"
},
})
.success(function (data) {
console.log("Ok : " + data);
})
.error(function (data) {
console.log("Error : " + data);
});
I want to know how retrieve json file in separate server.