Server Proxy
Added by laktek
at October 10, 2009 02:19
GitHub stats:
watcher(s)
fork(s)
About
Due to cross-domain access restrictions you will not be able to consume external web services via AJAX. To bypass this restrictions, we need to have a server proxy that would load and serve the external API via the same domain. This Rack middleware, helps you to do exactly that!
Usage
Once you enable the middleware on you Rack Application.
You can send requests like:
http://localhost:3000/server_proxy?service_url=twitter.com&service_path=statuses/public_timeline.xml
