title: Origin http://localhost is not allowed by Access-Control-Allow-Origin.?
body: <p>i have a problem... i try to get json api in <strong>"<a href="http://api.master18.tiket.com/search/autocomplete/hotel?q=mah&amp;token=90d2fad44172390b11527557e6250e50&amp;secretkey=83e2f0484edbd2ad6fc9888c1e30ea44&amp;output=json" rel="noreferrer">http://api.master18.tiket.com/search/autocomplete/hotel?q=mah&amp;token=90d2fad44172390b11527557e6250e50&amp;secretkey=83e2f0484edbd2ad6fc9888c1e30ea44&amp;output=json</a>"</strong></p>
  
  <p>when i try to offline mode(this means i copy that json API in notepad and call it in my localhost) with this code...</p>
  
  <pre><code>function getLast(){
          $.ajax({
              url:"http://localhost/tickets/json/api_airport.json",
              type:'GET',
              dataType:"json",
              success:function(data){console.log(data.results.result[1].category);}
          });
      }
  </code></pre>
  
  <p>it runs perfectly.:)</p>
  
  <p>but when i try to real url ("<strong><a href="http://api.master18.tiket.com/search/autocomplete/hotel?q=mah&amp;token=90d2fad44172390b11527557e6250e50&amp;secretkey=83e2f0484edbd2ad6fc9888c1e30ea44&amp;output=json" rel="noreferrer">http://api.master18.tiket.com/search/autocomplete/hotel?q=mah&amp;token=90d2fad44172390b11527557e6250e50&amp;secretkey=83e2f0484edbd2ad6fc9888c1e30ea44&amp;output=json</a></strong>") with this code:</p>
  
  <pre><code>$.ajax({
              url:"http://api.master18.tiket.com/search/autocomplete/hotel?q=mah&amp;token=90d2fad44172390b11527557e6250e50&amp;secretkey=83e2f0484edbd2ad6fc9888c1e30ea44&amp;output=json",
              type:'GET',
              crossDomain:true,
              beforeSend: function(x) {
                  if(x &amp;&amp; x.overrideMimeType) {
                      x.overrideMimeType("application/j-son;charset=UTF-8");
                  }
              },
              success:function(data){console.log("Success");}
          });
  </code></pre>
  
  <p>then in my google chrome javascript console,there is an error like this :
  "XMLHttpRequest cannot load <a href="http://api.master18.tiket.com/search/autocomplete/hotel?q=mah&amp;token=90d2fad44172390b11527557e6250e50&amp;secretkey=83e2f0484edbd2ad6fc9888c1e30ea44&amp;output=json" rel="noreferrer">http://api.master18.tiket.com/search/autocomplete/hotel?q=mah&amp;token=90d2fad44172390b11527557e6250e50&amp;secretkey=83e2f0484edbd2ad6fc9888c1e30ea44&amp;output=json</a>. Origin (<a href="http://localhost" rel="noreferrer">http://localhost</a>) is not allowed by Access-Control-Allow-Origin."</p>
  
  <p>i know, it must be cross domain problem, can someone help me?
  nb:some pieces of code, i got from stack overflow community....thank you :)</p>