Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit cb2fdaf

Browse files
committed
v1.7.1-build.5556+sha.05170bf
1 parent 2d8b21f commit cb2fdaf

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

angular-cookies.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.7.0
2+
* @license AngularJS v1.7.1-build.5556+sha.05170bf
33
* (c) 2010-2018 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -17,7 +17,7 @@
1717

1818

1919
angular.module('ngCookies', ['ng']).
20-
info({ angularVersion: '1.7.0' }).
20+
info({ angularVersion: '1.7.1-build.5556+sha.05170bf' }).
2121
/**
2222
* @ngdoc provider
2323
* @name $cookiesProvider
@@ -43,6 +43,10 @@ angular.module('ngCookies', ['ng']).
4343
* or a Date object indicating the exact date/time this cookie will expire.
4444
* - **secure** - `{boolean}` - If `true`, then the cookie will only be available through a
4545
* secured connection.
46+
* - **samesite** - `{string}` - prevents the browser from sending the cookie along with cross-site requests.
47+
* Accepts the values `lax` and `strict`. See the [OWASP Wiki](https://www.owasp.org/index.php/SameSite)
48+
* for more info. Note that as of May 2018, not all browsers support `SameSite`,
49+
* so it cannot be used as a single measure against Cross-Site-Request-Forgery (CSRF) attacks.
4650
*
4751
* Note: By default, the address that appears in your `<base>` tag will be used as the path.
4852
* This is important so that cookies will be visible for all routes when html5mode is enabled.
@@ -218,6 +222,7 @@ function $$CookieWriter($document, $log, $browser) {
218222
str += options.domain ? ';domain=' + options.domain : '';
219223
str += expires ? ';expires=' + expires.toUTCString() : '';
220224
str += options.secure ? ';secure' : '';
225+
str += options.samesite ? ';samesite=' + options.samesite : '';
221226

222227
// per http://www.ietf.org/rfc/rfc2109.txt browser must allow at minimum:
223228
// - 300 cookies

angular-cookies.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular-cookies.min.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "angular-cookies",
3-
"version": "1.7.0",
3+
"version": "1.7.1-build.5556+sha.05170bf",
44
"license": "MIT",
55
"main": "./angular-cookies.js",
66
"ignore": [],
77
"dependencies": {
8-
"angular": "1.7.0"
8+
"angular": "1.7.1-build.5556+sha.05170bf"
99
}
1010
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-cookies",
3-
"version": "1.7.0",
3+
"version": "1.7.1-build.5556+sha.05170bf",
44
"description": "AngularJS module for cookies",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)