@adobe/helix-html-pipeline 3.11.4 → 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 +7 -0
- package/package.json +1 -1
- package/src/utils/auth-cookie.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
|
|
1
8
|
## [3.11.4](https://github.com/adobe/helix-html-pipeline/compare/v3.11.3...v3.11.4) (2023-05-04)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/utils/auth-cookie.js
CHANGED
|
@@ -17,7 +17,7 @@ export function clearAuthCookie(secure) {
|
|
|
17
17
|
httpOnly: true,
|
|
18
18
|
secure,
|
|
19
19
|
expires: new Date(0),
|
|
20
|
-
sameSite: 'none',
|
|
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: 'none',
|
|
29
|
+
sameSite: secure ? 'none' : 'lax',
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
|