You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
1
1
# Changelog
2
2
3
+
## 4.1.0 (03-Feb-20)
4
+
5
+
* Added a new [`angular_rails_csrf_secure` option](https://github.com/jsanders/angular_rails_csrf#secure-cookie) (thanks, [@DougKeller](https://github.com/DougKeller))
6
+
* Tested against Ruby 2.7
7
+
3
8
## 4.0.1 (23-Dec-19)
4
9
5
10
* Updated dependencies, tested against more recent Rubies and Rails
Copy file name to clipboardExpand all lines: README.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,14 +52,28 @@ end
52
52
53
53
If `angular_rails_csrf_domain` is not set, it defaults to `nil`.
54
54
55
+
### Secure Cookie
56
+
57
+
To set a "secure" flag for the cookie, set the `angular_rails_csrf_secure` option to `true`:
58
+
59
+
```ruby
60
+
# application.rb
61
+
classApplication < Rails::Application
62
+
#...
63
+
config.angular_rails_csrf_secure =true
64
+
end
65
+
```
66
+
67
+
`angular_rails_csrf_secure` defaults to `false`.
68
+
55
69
### Exclusions
56
70
57
71
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)):
58
72
59
73
```ruby
60
74
classExclusionsController < ApplicationController
61
75
exclude_xsrf_token_cookie
62
-
76
+
63
77
# your actions here...
64
78
end
65
79
```
@@ -78,6 +92,6 @@ and then
78
92
$ rake test
79
93
```
80
94
81
-
## License
95
+
## License
82
96
83
97
Licensed under the [MIT License](https://github.com/jsanders/angular_rails_csrf/blob/master/LICENSE).
0 commit comments