Open zlcting opened 5 years ago
from flask import session,make_response
@app.route("/test",methods = ["GET","POST"]) def test(): response=make_response() response.set_cookie('admin_permit','123123') return "" spiderkeep新加了一个页面 想给当前的域名设置cookie 按照上面的代码写好后,cookie设置无效 请问这是怎么回事啊?
from flask import session,make_response
@app.route("/test",methods = ["GET","POST"]) def test(): response=make_response() response.set_cookie('admin_permit','123123')
return "" spiderkeep新加了一个页面 想给当前的域名设置cookie 按照上面的代码写好后,cookie设置无效 请问这是怎么回事啊?