title: Google Maps geocoding service Access-Control-Allow-Origin error
body: <p>I want to loop through an array of addresses and retrieve the lat-lng coordinates from Google geocoding before the page loads so I can have markers on all the addresses. When I attempt to do that though I get the <code>Access-Control-Allow-Origin</code> error. </p>
  
  <p>Everyone suggests to use the geocoding API but I don't need anything dynamic. I already have the information I need when the webpage loads up.</p>
  
  <pre><code>var url = 
  "http://maps.googleapis.com/maps/api/geocode/json?address="+address+"&amp;sensor=true";
  
  var request = new XMLHttpRequest();
  request.open("GET", url, false);
  request.send();
  </code></pre>
  
  <p>As you can see, the code is simple enough, but is there a way to get around the error while still using the http request?</p>