@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 CHANGED
@@ -2896,8 +2896,12 @@ const fetchProc = (url, requestInit) => {
2896
2896
  * @param res ブラウザへのレスポンス
2897
2897
  */
2898
2898
  const setCookie = (response, res) => {
2899
- const setCookieVal = response.headers.get('set-cookie');
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtecx/vtecxnext",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "vte.cx Next.js api",
5
5
  "main": "dist/index.js",
6
6
  "files": [