@akinon/next 1.127.0-rc.0 → 1.127.0-rc.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @akinon/next
2
2
 
3
+ ## 1.127.0-rc.2
4
+
5
+ ## 1.127.0-rc.1
6
+
7
+ ### Minor Changes
8
+
9
+ - 1d00f2d0: BRDG-16664: Set secure flag for CSRF token cookies in useCaptcha and default middleware
10
+
3
11
  ## 1.127.0-rc.0
4
12
 
5
13
  ### Minor Changes
@@ -39,7 +39,7 @@ export const useCaptcha = () => {
39
39
  };
40
40
 
41
41
  if (csrfToken) {
42
- setCookie('csrftoken', csrfToken);
42
+ setCookie('csrftoken', csrfToken, { secure: true });
43
43
  }
44
44
 
45
45
  const onCaptchaChange = useCallback(async (response) => {
@@ -547,7 +547,8 @@ const withPzDefault =
547
547
  'csrftoken',
548
548
  csrf_token,
549
549
  {
550
- domain: rootHostname
550
+ domain: rootHostname,
551
+ secure: true
551
552
  }
552
553
  );
553
554
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@akinon/next",
3
3
  "description": "Core package for Project Zero Next",
4
- "version": "1.127.0-rc.0",
4
+ "version": "1.127.0-rc.2",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -35,7 +35,7 @@
35
35
  "set-cookie-parser": "2.6.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@akinon/eslint-plugin-projectzero": "1.127.0-rc.0",
38
+ "@akinon/eslint-plugin-projectzero": "1.127.0-rc.2",
39
39
  "@babel/core": "7.26.10",
40
40
  "@babel/preset-env": "7.26.9",
41
41
  "@babel/preset-typescript": "7.27.0",