After many tossing, I found that the python flask framework sets cookies, which need to be on the view page:
resp = make_response("success")resp.set_cookie("test", "123", max_age=3600) return resp
The page prints the success text directly, and the return redirect("/pages/") or render_template("test.html") functions cannot be used in the view, which is very inconvenient, so I want to know how to flexibly set the view page in flaskWhat about cookies?