S
S
Semyon Kataparov2016-04-26 20:11:56
Angular
Semyon Kataparov, 2016-04-26 20:11:56

What is the price parsing error?

What is the price parsing error?

<ul ng-repeat="result in results">
        <li>
            Result: {{ result.median_price }}
        </li>
    </ul>

$http.get('http://steamcommunity.com/market/priceoverview/?appid=730&currency=&market_hash_name=M4A1-S | Hyper Beast (Factory New)').success(function(data){
        $scope.results = data;
    });

When trying to output the result to the console, it says - "Request from an extraneous source blocked: Single origin policy prohibits reading a remote resource at http://steamcommunity.com/market/priceoverview/?ap... (Reason: missing CORS header 'Access- Control-Allow-Origin')."

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2016-04-26
@AMar4enko

There is no error - the server did not allow third-party domains to ask it for information, this is a limitation of the Cross-Origin Resource Sharing policy.
If you want information, try proxying through your server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question