Just out of curiosity I was wondering how is it possible for the javascript code to embed google maps communicate with server from outside domain. I know I’m missing out something here. can anyone help?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because it writes an iframe, which then makes a request to google (so the javascript isnt actually loading from outside the domain)EDIT: Google Maps actually uses JSONP. It loads pages as
<script>elements and then that script calls a callback method that has already been defined on your page.