rondale-sc / ember-cli-rails-addon

27 stars 37 forks source link

Set `X-CSRF-Token` on HTTP requests #19

Closed seanpdoyle closed 8 years ago

seanpdoyle commented 8 years ago

https://github.com/emberjs/ember-rails#csrf-token https://github.com/thoughtbot/ember-cli-rails#csrf-tokens

When ember-cli-rails embeds the CSRF meta tags, this initializer configures the host app to recognize them and set them as outgoing HTTP headers to play nice with the Rails app's CSRF protection.