chore: Missed adding argument for cookie init (#39704)
## Description
> [!TIP]
> _Add a TL;DR when the description is longer than 500 words or
extremely technical (helps the content, marketing, and DevRel team)._
>
> _Please also include relevant motivation and context. List any
dependencies that are required for this change. Add links to Notion,
Figma or any other documents that might be relevant to the PR._
Fixes #`Issue Number`
_or_
Fixes `Issue URL`
> [!WARNING]
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._
## Automation
/ok-to-test tags=""
### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results -->
> [!CAUTION]
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.
<!-- end of auto-generated comment: Cypress test results -->
## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No
This commit is contained in:
parent
82e9754dc4
commit
d5ee82db85
|
|
@ -27,11 +27,11 @@ public class CustomCookieWebSessionIdResolverCE extends CookieWebSessionIdResolv
|
|||
|
||||
@Override
|
||||
public void setSessionId(ServerWebExchange exchange, String id) {
|
||||
addCookieInitializers();
|
||||
addCookieInitializers(exchange);
|
||||
super.setSessionId(exchange, id);
|
||||
}
|
||||
|
||||
protected void addCookieInitializers() {
|
||||
protected void addCookieInitializers(ServerWebExchange exchange) {
|
||||
// Add the appropriate SameSite attribute based on the exchange attribute
|
||||
addCookieInitializer((builder) -> builder.sameSite(LAX).secure(true));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user