diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-07-20 18:37:30 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-07-20 19:37:57 +0300 |
commit | a299fa38a9172f16e4bc48d4bd4f9807cec2f737 (patch) | |
tree | abd17d7cc5eabc8acf7cb5b1acb30a12abe1581e /lib/public/IRequest.php | |
parent | 7cdf6402ff9a0e07866ca8bcfcffd0e0897b646a (diff) |
[master] Port Same-Site Cookies to master
Fixes https://github.com/nextcloud/server/issues/50
Diffstat (limited to 'lib/public/IRequest.php')
-rw-r--r-- | lib/public/IRequest.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/public/IRequest.php b/lib/public/IRequest.php index 4db1c18b9c1..46e67d1415f 100644 --- a/lib/public/IRequest.php +++ b/lib/public/IRequest.php @@ -158,6 +158,24 @@ interface IRequest { public function passesCSRFCheck(); /** + * Checks if the strict cookie has been sent with the request if the request + * is including any cookies. + * + * @return bool + * @since 9.0.0 + */ + public function passesStrictCookieCheck(); + + /** + * Checks if the lax cookie has been sent with the request if the request + * is including any cookies. + * + * @return bool + * @since 9.0.0 + */ + public function passesLaxCookieCheck(); + + /** * Returns an ID for the request, value is not guaranteed to be unique and is mostly meant for logging * If `mod_unique_id` is installed this value will be taken. * |