I am trying to set SameSite=None Flag to my cookie but when I check in developer tools in chrome, SameSite=None is showing it as another cookie. Please help.
Test URL: https://elbtest.s2d6.com/x/?x=c&z=s&v=7100096
val cookieString = "949413017=533c892b32cf4a46961a38f8c56b33eb320412596|6386|323064|7100096|14988;Expires=Wed, 30 Sep 2020 12:45:30 GMT;Path=/;Domain=s2d6.com;Secure;SameSite=None" val finalURL = "https://www.google.com/" resp = Redirect(finalURL).withHeaders(SET_COOKIE -> cookieString)
PFB the set-cookie headers i see in developer tools:
set-cookie: SameSite=None; Path=/ set-cookie: 949413017=27124ab4e77a44199bdaad436be071a3864846875|6386|323064|7100096|14988; Expires=Wed, 30 Sep 2020 12:45:30 GMT; Path=/; Domain=s2d6.com; Secure; HTTPOnly
I have posted this query on StackOverflow as well but no one has responded thus far.
SO URL: https://stackoverflow.com/questions/63671946/samesite-none-is-becoming-another-cookie
I can’t figure out why it’s happening. Any help would be greatly appreciated.
Note: I am using Scala 2.10/Play 2.3. I can’t update the framework as of now due to some legacy issues.
Thanks a ton!