Can anyone explain why i always get this text in response in app?
<html style="height:100%"><head><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><meta name="format-detection" content="telephone=no"><meta name="viewport" content="initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></head><body style="margin:0px;height:100%"><iframe src="/_Incapsula_Resource?CWUDNSAI=9&xinfo=6-10526033-0 0NNN RT(1427979693499 1) q(0 -1 -1 0) r(1 -1) B12(4,315,0) U13&incident_id=165001010055460724-68720833956480598&edet=12&cinfo=04000000" frameborder=0 width="100%" height="100%" marginheight="0px" marginwidth="0px">Request unsuccessful. Incapsula incident ID: 165001010055460724-68720833956480598</iframe></body></html>
I just do this request:
$http.get($rootScope.settings.server + '/getInfo/')
.success(function(ordersArray) {
$rootScope.orders = [];
ordersArray.shipments.forEach(function(orderData) {
angular.forEach(ordersArray.survey,function(surveyData,key){
if(key==orderData.shop_id)
orderData.survey=surveyData;
});
var order = scope._retrieveInstance(orderData.order_no, orderData);
$rootScope.orders.push(order);
});
$rootScope.orders = ordersArray;
deferred.resolve($rootScope.orders);
}
})
.error(function() {
deferred.reject();
});
Ionic 1.0.0 rc2, Nexus 5, Android 5.1