koa-session
Advanced tools
Comparing version 5.13.0 to 5.13.1
5.13.1 / 2020-02-01 | ||
================== | ||
**fixes** | ||
* [[`ecd1f5e`](http://github.com/koajs/session/commit/ecd1f5edaa6ff1e77cc461d1107432b394ce21d2)] - fix: don't set any value to sameSite by default (#194) (fengmk2 <<fengmk2@gmail.com>>) | ||
5.13.0 / 2020-02-01 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -71,3 +71,4 @@ 'use strict'; | ||
if (opts.httpOnly == null) opts.httpOnly = true; | ||
if (opts.sameSite == null) opts.sameSite = ''; | ||
// delete null sameSite config | ||
if (opts.sameSite == null) delete opts.sameSite; | ||
if (opts.signed == null) opts.signed = true; | ||
@@ -74,0 +75,0 @@ if (opts.autoCommit == null) opts.autoCommit = true; |
@@ -5,3 +5,3 @@ { | ||
"repository": "koajs/session", | ||
"version": "5.13.0", | ||
"version": "5.13.1", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "koa", |
@@ -62,3 +62,3 @@ # koa-session | ||
renew: false, /** (boolean) renew session when session is nearly expired, so we can always keep user logged in. (default is false)*/ | ||
sameSite: '', /** (string) session cookie sameSite options (default '', don't set it) */ | ||
sameSite: null, /** (string) session cookie sameSite options (default null, don't set it) */ | ||
}; | ||
@@ -65,0 +65,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31850
557