Skip to content

Commit

Permalink
prepare for version 3 release [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Jan 17, 2018
1 parent c13a708 commit bc4bd68
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# Changelog

## 3.0.0 (unreleased)
## 3.0.0

New feature:
* Allow cookie domain to be set via `Rails.application.config` (thanks, @gingermusketeer)

Updated:
* Dropped support for Rails < 4
* Dropped official support for Ruby 2.2 though it should still work

Testing:
* Test against more recent versions of Ruby and Rails
* Dropped official support for Ruby 2.2 though it should still work

## 2.1.1

Expand Down
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,22 @@ And then execute:

That's it!

## Exclusions
## Configuration
### Cookie Domain

Starting from version 3, you may set domain for the XSRF cookie:

```ruby
# application.rb
class Application < Rails::Application
#...
config.angular_rails_csrf_domain = :all
end
```

If `angular_rails_csrf_domain` is not set, it defaults to `nil`.

### Exclusions

Sometimes you will want to skip setting the XSRF token for certain controllers (for example, when using SSE or ActionCable, as discussed [here](https://github.com/jsanders/angular_rails_csrf/issues/7)):

Expand Down

0 comments on commit bc4bd68

Please sign in to comment.