diff --git a/CHANGELOG.md b/CHANGELOG.md index ee8f2af..e5b654b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 3.2.0 + +New feature: +* Allow cookie's name to be customized (thanks, [@timobleeker](https://github.com/timobleeker)) + ## 3.1.0 Updated: diff --git a/README.md b/README.md index 4a23904..197a876 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,19 @@ And then execute: That's it! ## Configuration + +### Cookie Name + +The default cookie's name is `XSRF-TOKEN` but it can be configured with the `angular_rails_csrf_cookie_name` setting: + +```ruby +# application.rb +class Application < Rails::Application + #... + config.angular_rails_csrf_cookie_name = 'CUSTOM_NAME' +end +``` + ### Cookie Domain Starting from version 3, you may set domain for the XSRF cookie: diff --git a/lib/angular_rails_csrf/version.rb b/lib/angular_rails_csrf/version.rb index f4a5856..b24d8a8 100644 --- a/lib/angular_rails_csrf/version.rb +++ b/lib/angular_rails_csrf/version.rb @@ -1,3 +1,3 @@ module AngularRailsCsrf - VERSION = '3.1.0'.freeze + VERSION = '3.2.0'.freeze end