<!doctype html>
  <html lang="en">
<head>
  <meta charset="utf-8">
  <title>jQuery.getJSON demo</title>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body>
  <div id="test"></div>
  <script>
  (function() {
    var flickerAPI = "https://api.cryptowat.ch/markets/bitstamp/btcusd/price";
    $.getJSON( flickerAPI )
      .done(function( data ) {
        alert("price: " + data['result'].price + " cost: " + data['allowance'].cost + " remaining: " + data['allowance'].remaining);
      })
      .fail(function() {
        alert("FAIL!");
      });
  })();
  </script>
</body>
</html>
In IE show returned data in other browser this code return "FAIL!".
In firefox, I use firebug and checked returned data: "CORS header 'Access-Control-Allow-Origin' missed".
How to set Access-Control-Allow-Origin and correct code to work in Firefox?
 
     
    