This is just a curiosity question: I am wondering how Firebase's JavaScript API syncs data. It doesn't require any server side code, so the work is all done by the client. However, it needs to retrieve data from an external url (https://<my-firebase>.firebaseio.com)
.
I thought that AJAX requests can only be made to the same domain, and that JavaScript cannot access <iframe>
's without a domain, protocol, or port matching the parent page.
So how does Firebase work?