'How to change from SameSite=none to SameSite=Lax in KEYCLOAK_SESSION cookie?

I am using keycloak 12 for authentication in our project. There are some cookies set by keycloak by default. One of the cookie KEYCLOAK_SESSION is having attribute Samesite and it’s value is coming as “None” with Secure flag, wanted to change the Samesite attribute value to “lax” or “strict”.

Can anyone please help to find out a solution.enter image description here

ORIGINAL POST : https://keycloak.discourse.group/t/how-to-change-from-samesite-none-to-samesite-lax-in-keycloak-session-cookie/13615?u=kailasnathmca



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source