Add sameSite policy in cookie management in server side

このコミットが含まれているのは:
Féry Mathieu (Mathius) 2022-02-22 18:57:21 +01:00
コミット 09a585c93b
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: F9CCC80C18A59037
1個のファイルの変更4行の追加2行の削除

ファイルの表示

@ -17,7 +17,8 @@ struct Invidious::User
value: sid,
expires: Time.utc + 2.years,
secure: SECURE,
http_only: true
http_only: true,
samesite: HTTP::Cookie::SameSite::Strict
)
end
@ -30,7 +31,8 @@ struct Invidious::User
value: URI.encode_www_form(preferences.to_json),
expires: Time.utc + 2.years,
secure: SECURE,
http_only: false
http_only: false,
samesite: HTTP::Cookie::SameSite::Strict
)
end
end