AngularCSRFCookieRails
Based on this StackOverflow answer, automatically configure Rails to set and verify the XSRF-TOKEN. The implementation is identical to the StackOverflow answer's implementation.
Installation
Add this line to your application's Gemfile:
gem 'angular-csrf-cookie-rails'
And then execute:
$ bundle
Usage
Just load the gem in your application's Gemfile, and you are good to go!
Contributing
- Fork it ( https://github.com/whitehat101/angular-csrf-cookie-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request