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
+6
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# Changelog
2
2
3
+
## 4.2.0 (31-Mar-20)
4
+
5
+
* Added a new [`angular_rails_csrf_same_site` option](https://github.com/jsanders/angular_rails_csrf#samesite) which defaults to `:lax` (thanks, [@timobleeker](https://github.com/timobleeker))
6
+
+ This option is introduced to comply with the latest changes: https://www.chromium.org/updates/same-site
7
+
* Update cops
8
+
3
9
## 4.1.0 (03-Feb-20)
4
10
5
11
* Added a new [`angular_rails_csrf_secure` option](https://github.com/jsanders/angular_rails_csrf#secure-cookie) (thanks, [@DougKeller](https://github.com/DougKeller))
Copy file name to clipboardExpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ end
68
68
69
69
### SameSite
70
70
71
-
The SameSite attribute now defaults to `:lax`. You can override this in the config:
71
+
The SameSite attribute defaults to `:lax`. You can override this in the config:
72
72
73
73
```ruby
74
74
# application.rb
@@ -78,7 +78,7 @@ class Application < Rails::Application
78
78
end
79
79
```
80
80
81
-
**NOTE**: When using `SameSite=None`, this gem automatically sets the cookie to `Secure`.
81
+
**NOTE**: When using `config.angular_rails_csrf_same_site = :none`, this gem automatically sets the cookie to `Secure` (`config.angular_rails_csrf_secure = true`) to comply with [the specifications](https://tools.ietf.org/html/draft-west-cookie-incrementalism-00).
0 commit comments