79377415

Date: 2025-01-22 10:51:30
Score: 2.5
Natty:
Report link

Thanks to the comment from @mr-mcwolf , setting the parameter max_age=0, the cookie "cookie1" can be removed as follows:

from fasthtml import common as fh 
app = fh.FastHTML

@app.get("/removecookie1")
def getdbpools(req):
    return fh.cookie(key='cookie1', value='', max_age=0)
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @mr-mcwolf
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Ximo Dante