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
1 changed files with 3 additions and 0 deletions
|
@ -490,6 +490,9 @@ class Request implements \ArrayAccess, \Countable, IRequest {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
private function cookieCheckRequired() {
|
private function cookieCheckRequired() {
|
||||||
|
if ($this->getHeader('OCS-APIREQUEST')) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if($this->getCookie(session_name()) === null && $this->getCookie('nc_token') === null) {
|
if($this->getCookie(session_name()) === null && $this->getCookie('nc_token') === null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue