diff options
Diffstat (limited to 'lib/public/AppFramework/ApiController.php')
-rw-r--r-- | lib/public/AppFramework/ApiController.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/public/AppFramework/ApiController.php b/lib/public/AppFramework/ApiController.php index feae56fc2c0..e9fccd1990e 100644 --- a/lib/public/AppFramework/ApiController.php +++ b/lib/public/AppFramework/ApiController.php @@ -38,7 +38,6 @@ use OCP\IRequest; * @since 7.0.0 */ abstract class ApiController extends Controller { - private $corsMethods; private $corsAllowedHeaders; private $corsMaxAge; @@ -79,7 +78,7 @@ abstract class ApiController extends Controller { * @since 7.0.0 */ public function preflightedCors() { - if(isset($this->request->server['HTTP_ORIGIN'])) { + if (isset($this->request->server['HTTP_ORIGIN'])) { $origin = $this->request->server['HTTP_ORIGIN']; } else { $origin = '*'; @@ -93,6 +92,4 @@ abstract class ApiController extends Controller { $response->addHeader('Access-Control-Allow-Credentials', 'false'); return $response; } - - } |