mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-14 20:35:32 +01:00
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:
parent
9a1de6253c
commit
9f7550938b
1 changed files with 2 additions and 1 deletions
|
|
@ -179,7 +179,8 @@ func ShareVerifyProof(ctx App, res http.ResponseWriter, req *http.Request) {
|
||||||
Path: COOKIE_PATH,
|
Path: COOKIE_PATH,
|
||||||
MaxAge: 60 * 60 * 24 * 30,
|
MaxAge: 60 * 60 * 24 * 30,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
SameSite: http.SameSiteStrictMode,
|
SameSite: http.SameSiteNoneMode,
|
||||||
|
Secure: true,
|
||||||
}
|
}
|
||||||
http.SetCookie(res, &cookie)
|
http.SetCookie(res, &cookie)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue