]> source.dussan.org Git - nextcloud-server.git/commitdiff
Inject parameters 509/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Fri, 22 Jul 2016 08:11:53 +0000 (10:11 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 22 Jul 2016 08:12:26 +0000 (10:12 +0200)
lib/private/AppFramework/DependencyInjection/DIContainer.php

index 59803d02bee06cd393eaaaf7a5bd5a84244fe486..ab360bf23956ffdaa2d773cebfba6c4c375b6ab4 100644 (file)
@@ -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