From 8a9cf3fb37805e1c94ae22c8e1157b7a9013637a Mon Sep 17 00:00:00 2001 From: bodrovis Date: Tue, 15 May 2018 16:02:03 +0300 Subject: [PATCH] Version 3.2.0 --- CHANGELOG.md | 5 +++++ README.md | 13 +++++++++++++ lib/angular_rails_csrf/version.rb | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) 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