Fixes some security issues preventing Ember and Rails from communicating.