title: CORS request is not working on google directions API
body: <p>Every time I try to get data from the directions API, I get No 'Access-Control-Allow-Origin' header is present on the requested resource. I've tried to do the same request to the geocode API and it works. This is the code that I'm using:</p>
  
  <pre><code>    var xhr = new XMLHttpRequest();
      xhr.open('GET', 'https://maps.googleapis.com/maps/api/directions/json?origin='+encodeURIComponent(data.origin)+'&amp;destination='+encodeURIComponent(data.destination)+'&amp;key='+encodeURIComponent(data.key), true);
      xhr.send();
  </code></pre>