设置跨域
This commit is contained in:
parent
3bd99994db
commit
0c17e99f53
|
@ -113,7 +113,7 @@ async def login(apikey: str, resp: Response):
|
|||
return {"msg": obj["msg"]}
|
||||
username = obj["data"]["username"]
|
||||
tkn = await create_token(username)
|
||||
resp.set_cookie("session", tkn)
|
||||
resp.set_cookie("session", tkn, secure=True, samesite="None")
|
||||
return {}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue