Hi Thomas,
For a vanilla HTTP call to an XSJS endpoint, I could not find a viable way to send back an HTTP cookie with cookie properties such as "HTTP-Only", "Path" or "Expires" set.
The following code does NOT set these properties as expected:
$.response.cookies.set('cookiename', "value;expires=" + new Date().toJSON().toString() + ";domain=.example.com;path=/;");
but instead, sets the value of the "cookiename" cookie to the entire string.
It would be a big help to actually be able to set these cookie properties in a normal HTTP call. Is there any other way to achieve this?
Regards,
Abhik