I am parsing a KML file from a directory on my website using GDownloadUrl. All was working fine until this morning when i replaced the kml file with a new one (same name).
Now when I try to run the code I get the error message: XMLHttpRequest cannot load (web address + KML file name), origin (web address) is not allowed by Access-Control-Allow-Origin. I googled the error and it seems that I need to have the host server set up to allow "Cross Origin resource sharing". (http://enable-cors.org/) What I don't get though is why was it working yesterday and now that i replaced the kml file with a new one I get the error. Also "Cross origin" sounds like something to do with sharing files between different websites. My webpage is hosted at the same URL as the kml file so it seems strange I would need to set it up to allow cross origin sharing.... Any ideas what the issue is? -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-api/-/jGGdwOWmSH0J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
