'SameSite property not being set in Javascript

I am trying to set the SameSite attribute in javascipt, this is my code:

document.cookie = `refresh=${resp.refresh};max-age=86400;SameSite=Lax;domain=mykerkadmin.com;`
document.cookie = `access=${resp.access};max-age=57600;SameSite=Lax;domain=mykerkadmin.com;`

I used the same syntax as the following Issue

But my cookies still show the following:

enter image description here

What can I do differently?



Sources

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

Source: Stack Overflow

Solution Source