2012-01-06

Grails Ajax Proxy Plugin

The Grails Ajax Proxy Plugin is now on GitHub.

Over 2 years ago I asked on the grails-user list if there was a Proxy Plugin available for Grails that was suitable for Ajax apps to work around the same origin policy.  I was told that nothing was available, so with a tip from Matt Raible's blog, I quickly wrote one using the proxy servlet from EdwardsTx.net.  It worked for my needs at the time, but nobody on the list had expressed much interest in it and I had a bad experience trying to publish an update to the Grails iUI Plugin, so I gave up.

Recently, I needed the plugin on another project, so I told my client that I'd put the source on GitHub in case they ever needed to modify it.  This week, I mentioned it on the grails-user list and on Twitter and Burt Beckwith submitted a pull request that cleans things up quite a bit.  He also changed the name to Grails Ajax Proxy Plugin.  (I renamed the GitHub repo accordingly and GitHub doesn't provide forwarding -- so if you get a 404 looking for it you're using the old URL.)

With Burt's help, we may even get it published into the Grails Plugins Portal.

(It's enough to make me consider updating the Grails iUI plugin after we release version 0.4...)