title: google.maps.places.Autocomplete not working using SimpleHTTPServer
body: <p>I am doing a location search and form auto fill using google.maps.places.Autocomplete.</p>
  
  <p>It is working right accessing the html directly (file:///location.html), but is not working using python SimpleHTTPServer to serve the html (<a href="http://localhost:8000/location.html" rel="nofollow">http://localhost:8000/location.html</a>).</p>
  
  <p>Accessing the html using localhost, the search input loads correctly, but shows no result. No suggestion is presented.</p>
  
  <p><strong>Html code</strong></p>
  
  <pre><code>&lt;meta charset="utf-8"/&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src="https://maps.googleapis.com/maps/api/js?key=KEY&amp;libraries=places"&gt;&lt;/script&gt;
  &lt;script&gt;
    function initialize(){
      var input = document.getElementById('searchTextField');
      var options = {types: ['(cities)']};
      var autocomplete = new google.maps.places.Autocomplete(input, options);
      autocomplete.addListener('place_changed', function() {
        var place = autocomplete.getPlace();
        var search_result = {};
        components = place.address_components;
        for (i in components){
          var name = components[i].types[0];
          search_result[name] = components[i].long_name;
          search_result[name + "_short"] = components[i].short_name;
        }
        var city = search_result.locality;
        var state = search_result.administrative_area_level_1;
        var country = search_result.country_short;
        document.getElementById('city').value = city;
        document.getElementById('state').value = state;
        document.getElementById('country').value = country;
      });
    };
    google.maps.event.addDomListener(window, 'load', initialize);
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;input id="searchTextField" type="text" size="50"&gt;&lt;/br&gt;&lt;/br&gt;
  &lt;input id="city" type="text" size="50" disabled="disabled"&gt;&lt;/br&gt;&lt;/br&gt;
  &lt;input id="state" type="text" size="50" disabled="disabled"&gt;&lt;/br&gt;&lt;/br&gt;
  &lt;input id="country" type="text" size="50" disabled="disabled"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Python command</strong></p>
  
  <pre><code>python -m SimpleHTTPServer 8000
  </code></pre>