mirror of
https://github.com/nextcloud/server.git
synced 2024-08-23 17:57:31 +02:00
dont require strict same site cookies for ocs requests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
2a8e922d67
commit
8626ccab1c
@ -490,6 +490,9 @@ class Request implements \ArrayAccess, \Countable, IRequest {
|
||||
* @return bool
|
||||
*/
|
||||
private function cookieCheckRequired() {
|
||||
if ($this->getHeader('OCS-APIREQUEST')) {
|
||||
return false;
|
||||
}
|
||||
if($this->getCookie(session_name()) === null && $this->getCookie('nc_token') === null) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user