How do I add the SameSite parameter to a cookie in Python 2.7?
I have seen this How do I set the `SameSite` attribute of HTTP cookies in python?, but it's not clear to me if this works for Python 2.7 or how I'd even combine it with the code I have:
response.set_cookie(key="", value="", max_age="", expires="", path="/",domain="",secure=None,httponly=True)
return response
I use Django so I create the response like so:
response = render(request, "template.html", {})