Search code examples
javascriptgoogle-mapssame-origin-policy

How does an embedded google maps send data despite same origin policy?


I was wondering how google maps accomplishes to send data to their servers when the map is embedded on some remote host. For example I can still set a marker on an embedded map. How do they dodge the same origin policy?

Thank you and regards


Solution

  • The maps are embedded on your website but they are still on a Google server, domain ... on the same domain they need to send data to.