javascript - Google Maps JS API v3 - UrlAuthentication -


last few days testing google maps js api on localhost without issues. today started getting error

urlauthenticationcommonerror: https://developers.google.com/maps/faq#errorcodes

frankly error not described on url. guess url authentication (i know, genius). included localhost in allowed referrers. error still here.

than uploaded site on azure. included url in allowed referrer , still nothing. same error again , again.

unfortunately google not helpful.

just in case code. direct copy/past demo page. same exact code working yesterday not today

function  init(params) {  var mapoptions = {     center: { lat: -34.397, lng: 150.644},     zoom:8 }  var map = new google.maps.map(document.getelementbyid("map"), mapoptions) }     <html> <head>     <title>proto wars</title>     <style>         html, body, #map { height: 100%; margin: 0; padding: 0;}     </style> </head>  <body>     <script type="text/javascript"   src="https://maps.googleapis.com/maps/api/js?key=aizasyc-mmp-pkbmtlooboynyjqvlbpyzp84tr0"> </script>     <script src="script.js"></script>           <div id="map" style="background-color: #000"></div> </body> 


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -