on ‎2020 Oct 28 9:07 AM
How to add sameSite Cookie attribute in hybris 6.2 version?
any suggestions?
Request clarification before answering.
First adapt class ServerCookie in your storefront so that the method appendCookieValue supports an sameSite attribute.
if (sameSite != null) {
buf.append("; SameSite=");
maybeQuote(buf, sameSite);
}
Then change the CookieGenerator (you need to extend it to do that) the addCookie method should use the new ServerCookie#appendCookieValue method. Use the newly created cookie generator in your spring config.
The 6.2 is rather old hopefully this works for your version. Upgrade recommended 😉
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.