dont require strict same site cookies for ocs requests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-03-09 16:48:48 +01:00 committed by Robin Appelman
parent 2a8e922d67
commit 8626ccab1c
No known key found for this signature in database
GPG Key ID: CBCA68FBAEBF98C9
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}