Skip to content

Commit

Permalink
Version 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed May 15, 2018
1 parent ca4695d commit 8a9cf3f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion lib/angular_rails_csrf/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module AngularRailsCsrf
VERSION = '3.1.0'.freeze
VERSION = '3.2.0'.freeze
end

0 comments on commit 8a9cf3f

Please sign in to comment.