egg-cookies
Advanced tools
Comparing version 2.9.1 to 2.9.2
@@ -27,2 +27,7 @@ 'use strict'; | ||
this._autoChips = defaultCookieOptions && defaultCookieOptions.autoChips; | ||
if (this._autoChips && ctx.get('sec-fetch-site') !== 'cross-site') { | ||
// only enable autoChips on cross site request | ||
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Site#cross-site | ||
this._autoChips = false; | ||
} | ||
this.ctx = ctx; | ||
@@ -29,0 +34,0 @@ this.secure = this.ctx.secure; |
{ | ||
"name": "egg-cookies", | ||
"version": "2.9.1", | ||
"version": "2.9.2", | ||
"description": "cookies module for egg", | ||
@@ -5,0 +5,0 @@ "files": [ |
30780
518