@vtecx/vtecxnext 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vtecxnext.js +5 -1
- package/package.json +1 -1
package/dist/vtecxnext.js
CHANGED
|
@@ -2896,8 +2896,12 @@ const fetchProc = (url, requestInit) => {
|
|
|
2896
2896
|
* @param res ブラウザへのレスポンス
|
|
2897
2897
|
*/
|
|
2898
2898
|
const setCookie = (response, res) => {
|
|
2899
|
-
|
|
2899
|
+
let setCookieVal = response.headers.get('set-cookie');
|
|
2900
2900
|
if (setCookieVal === '' || setCookieVal) {
|
|
2901
|
+
if (setCookieVal !== '' && setCookieVal.indexOf('SameSite') < 0) {
|
|
2902
|
+
setCookieVal += '; SameSite=Lax';
|
|
2903
|
+
}
|
|
2904
|
+
//console.log(`[vtecxnext setCookie] value : ${setCookieVal}`)
|
|
2901
2905
|
res.setHeader('set-cookie', setCookieVal);
|
|
2902
2906
|
}
|
|
2903
2907
|
};
|