mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 11:32:38 +02:00
Change cookie policy to Lax in order to accept links from third party
This commit is contained in:
parent
aabe6e3a06
commit
c9481c4df4
1 changed files with 1 additions and 2 deletions
|
@ -85,9 +85,8 @@ async def set_sesame(request, response, token):
|
|||
value=token,
|
||||
httponly=True,
|
||||
max_age=60 * 60 * 24 * 7,
|
||||
samesite="Strict",
|
||||
samesite="Lax",
|
||||
)
|
||||
request.cookies = response.cookies
|
||||
response.message("Yay ! Le sésame a fonctionné. Bienvenue à bord ! :-)")
|
||||
response.redirect = "/"
|
||||
|
||||
|
|
Loading…
Reference in a new issue