خرید بک لینک

Vote count: 0

I am trying to get medicine name from TrueMD using api. I am using this from my localhost. For that reason web service security I also include 'Access-Control-Allow-Origin' as a null still same error of security. Is there somthing that I am missing?

    $scope.medicines = [];
    var search = "crocin";
    var api_key = "API_KEY";

    $http.get("http://www.truemd.in/api/medicine_suggestions?id=" + search + "?key=" + api_key)
    .then(function(response){ 
        response.header('Access-Control-Allow-Origin', "null");
        $scope.medicines = response.data; 
        console.log($scope.medicine);
    });

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 13 ارديبهشت 1395 ساعت: 20:41

صفحه بندی