From: Roeland Jago Douma Date: Fri, 22 Jul 2016 08:11:53 +0000 (+0200) Subject: Inject parameters X-Git-Tag: v11.0RC2~954^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F509%2Fhead;p=nextcloud-server.git Inject parameters --- diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php index 59803d02bee..ab360bf2395 100644 --- a/lib/private/AppFramework/DependencyInjection/DIContainer.php +++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php @@ -330,6 +330,12 @@ class DIContainer extends SimpleContainer implements IAppContainer { ); }); + /** + * App Framework default arguments + */ + $this->registerParameter('corsMethods', 'PUT, POST, GET, DELETE, PATCH'); + $this->registerParameter('corsAllowedHeaders', 'Authorization, Content-Type, Accept'); + $this->registerParameter('corsMaxAge', 1728000); /** * Middleware