mirror of
https://github.com/nextcloud/server.git
synced 2026-04-05 00:56:16 -04:00
fix(security): Log failing strict cookie check
The error is silent otherwise and makes it very hard to debug on a production system. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
8f59ff880f
commit
0e6fccf9e1
1 changed files with 1 additions and 0 deletions
|
|
@ -561,6 +561,7 @@ class OC {
|
|||
|
||||
// All other endpoints require the lax and the strict cookie
|
||||
if (!$request->passesStrictCookieCheck()) {
|
||||
logger('core')->warning('Request does not pass strict cookie check');
|
||||
self::sendSameSiteCookies();
|
||||
// Debug mode gets access to the resources without strict cookie
|
||||
// due to the fact that the SabreDAV browser also lives there.
|
||||
|
|
|
|||
Loading…
Reference in a new issue