in backend/layers/shared.py [0:0]
def get_headers(cart_id):
"""
Get the headers to add to response data
"""
headers = HEADERS
cookie = SimpleCookie()
cookie["cartId"] = cart_id
cookie["cartId"]["max-age"] = (60 * 60) * 24 # 1 day
cookie["cartId"]["secure"] = True
cookie["cartId"]["httponly"] = True
cookie["cartId"]["samesite"] = "None"
cookie["cartId"]["path"] = "/"
headers["Set-Cookie"] = cookie["cartId"].OutputString()
return headers