adminizer 4.2.0-build.49 → 4.2.0-build.50

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.
@@ -14,7 +14,7 @@ const inertiaExpressAdapter = function ({ version, html, flashMessages, enableRe
14
14
  const csrfToken = randomBytes(32).toString('hex');
15
15
  res.cookie('XSRF-TOKEN', csrfToken, {
16
16
  httpOnly: false,
17
- secure: true,
17
+ secure: process.env.NODE_ENV === 'production' && process.env.CSRF_COOKIE_INSECURE !== '1',
18
18
  sameSite: 'lax',
19
19
  });
20
20
  // Check CSRF token for non-GET requests
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adminizer",
3
3
  "type": "module",
4
- "version": "4.2.0-build.49",
4
+ "version": "4.2.0-build.50",
5
5
  "main": "index.js",
6
6
  "exports": {
7
7
  ".": "./index.js",