Updated Rails CORS post for Rails 4.