So when users of my site visit a.mysite.com, my flask server is setting the browser in their cookie via:
@app.route('/safe')
def tag_browser():
response = redirect('/')
response.set_cookie('hello', 'world')
return response
This sets the cookie for a.mysite.com. However, I am interested to set the cookie for mysite.com
There is this thread: Share cookie between subdomain and domain which talks about how I can achieve the same effect wth
Set-Cookie: name=value; domain=mydomain.com
My problem is, how can I do so inside flask?