Couldn't set cookie with flask Couldn't set cookie with flask flask flask

Couldn't set cookie with flask


if you use axios in vuejs, i suggest that you can add withCredentials: true

const instance = axios.create({    withCredentials: true,    ....})

And in flask

@app.after_requestdef handle_credentials(response):    response.headers["Access-Control-Allow-Credentials"] = True    return response