title: Making RESTful requests Cross-Domain in Javascript
body: <p>I'm trying to find the most convenient, and efficient(i.e. scalable) way to make cross-domain requests in Javascript, that allows use of full HTTP verbs(GET, POST, PUT, DELETE) in my requests. Our issue is we have a light weight architecture that allows for data storage and and an API to be distributed across multiple small servers, and to have either one, or two servers providing web services mostly written in pure Javascript.</p>
  
  <p>I want to be able to consume the API from Javascript with the least ugly hack/solution, I've played with JSONP, server side proxying(not sure if scalable?) and iframe proxying, but these all end in needing a special functionality hosted by the API to translate these requests to normal calls. Is there a way for me to get this functionality without annoying work arounds, or am I stuck with one?</p>
  
  <p>(I also looked at postMessage, but its still not fully supported and provides the same issue of not being able to specify the HTTP verb.)</p>