fix (iframe): proof cookie should be iframe friendly

before this commit, we couldn't embed a shared link protected by a
password as it would show the following error: "Unauthorized Shared
space".
This commit is contained in:
Mickael Kerjean 2022-07-16 18:59:53 +10:00
parent 9a1de6253c
commit 9f7550938b

View file

@ -179,7 +179,8 @@ func ShareVerifyProof(ctx App, res http.ResponseWriter, req *http.Request) {
Path: COOKIE_PATH,
MaxAge: 60 * 60 * 24 * 30,
HttpOnly: true,
SameSite: http.SameSiteStrictMode,
SameSite: http.SameSiteNoneMode,
Secure: true,
}
http.SetCookie(res, &cookie)