title: Yelp API Origin http://localhost:8888 is not allowed by Access-Control-Allow-Origin
body: <p>Using the following code, I get the error in the title of this question using Chrome's JavaScript developer console: </p>
  
  <pre><code>    jQuery.getJSON("http://api.yelp.com/business_review_search?term=starbucks&amp;location=Urbana%20IL&amp;limit=3&amp;ywsid=XXX",
   function(data){
    jQuery.each(data, function(i,businesses){   
     jQuery("#yelpPreview").append(businesses.url);
     if ( i == (amount - 1) ) return false;
    });
   });
  </code></pre>
  
  <p>In full, the error is: XMLHttpRequest cannot load <a href="http://api.yelp.com/business_review_search?term=starbucks&amp;location=Urbana%20IL&amp;limit=3&amp;ywsid=XXX" rel="noreferrer">http://api.yelp.com/business_review_search?term=starbucks&amp;location=Urbana%20IL&amp;limit=3&amp;ywsid=XXX</a>. Origin <a href="http://localhost:8888" rel="noreferrer">http://localhost:8888</a> is not allowed by Access-Control-Allow-Origin.</p>
  
  <p>I'm using MAMP as my localhost.</p>
  
  <p>Is this an issue with Yelp blocking API access to a localhost, or is there an error in my code?</p>