Javascript based Web mapping apps that use ajax requests to get data from a server are limited by the Same Origin Policy to only request the data from a server in the same domain (subdomain and port).
One method commonly used to get around this is to have a script that acts as a proxy located within the same domain. The proxy sends the request to the server outside of the domain and then forwards the results back to the requesting browser.
I have heard of some non-spatial Web apps using JSONP "Javascript Object Notation with Padding" to get around the same origin policy. I haven't seen it in use in any Web mapping apps.
Can anyone identify an example? What are the pros and cons?