It seems that api.nestoria.co.uk
does not allow CORS. It has to set the Access-Control-Allow-Origin
header itself -- you have no direct control over that.
However, you can use JSONP. That site allows it via the callback
query parameter.
$http.jsonp(baseurl+'country=uk&pretty=1&action=search_listings&place_name=london'
+encoding+type + "&callback=JSON_CALLBACK")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…