@adobe/helix-html-pipeline 3.11.3 → 3.11.5

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,3 +1,17 @@
1
+ ## [3.11.5](https://github.com/adobe/helix-html-pipeline/compare/v3.11.4...v3.11.5) (2023-05-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * only use SameSite=None for secure cookies ([#306](https://github.com/adobe/helix-html-pipeline/issues/306)) ([bd721a5](https://github.com/adobe/helix-html-pipeline/commit/bd721a5322afbbf42c6e1d4473c44e9d537d339f))
7
+
8
+ ## [3.11.4](https://github.com/adobe/helix-html-pipeline/compare/v3.11.3...v3.11.4) (2023-05-04)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * use SameSite=None for auth cookie ([#305](https://github.com/adobe/helix-html-pipeline/issues/305)) ([5303c17](https://github.com/adobe/helix-html-pipeline/commit/5303c174830755f07019179cf9b53c198f3cf3e1)), closes [#304](https://github.com/adobe/helix-html-pipeline/issues/304)
14
+
1
15
  ## [3.11.3](https://github.com/adobe/helix-html-pipeline/compare/v3.11.2...v3.11.3) (2023-05-02)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-html-pipeline",
3
- "version": "3.11.3",
3
+ "version": "3.11.5",
4
4
  "description": "Helix HTML Pipeline",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -17,7 +17,7 @@ export function clearAuthCookie(secure) {
17
17
  httpOnly: true,
18
18
  secure,
19
19
  expires: new Date(0),
20
- sameSite: 'lax',
20
+ sameSite: secure ? 'none' : 'lax',
21
21
  });
22
22
  }
23
23
 
@@ -26,7 +26,7 @@ export function setAuthCookie(idToken, secure) {
26
26
  path: '/',
27
27
  httpOnly: true,
28
28
  secure,
29
- sameSite: 'lax',
29
+ sameSite: secure ? 'none' : 'lax',
30
30
  });
31
31
  }
32
32