diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-03-09 16:48:48 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-03-09 16:48:48 +0100 |
commit | 8626ccab1c8344a5e2c392a0c26da42061e70332 (patch) | |
tree | e2b9362a24ca2f0752fa55f185c0421347394cd5 /lib | |
parent | 2a8e922d67a1246e101f926f1b0ab287db71929e (diff) | |
download | nextcloud-server-8626ccab1c8344a5e2c392a0c26da42061e70332.tar.gz nextcloud-server-8626ccab1c8344a5e2c392a0c26da42061e70332.zip |
dont require strict same site cookies for ocs requests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/AppFramework/Http/Request.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php index be35f4d172f..fd43d468568 100644 --- a/lib/private/AppFramework/Http/Request.php +++ b/lib/private/AppFramework/Http/Request.php @@ -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; } |