This is necessary for doing any sort of cross-domain request when using backbone-rails.
Allows the X-CSRF-Token to be skipped optionally
I had this need and submitted a pull request with a different work-around but I like this one better. I hope it's pulled soon so I can change my source back to the main codebase.
There may honestly be a better way to do this, I can't really say.