From 1b73a630411f375c3250d8c80ff050a3edbd1c35 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 22 Jul 2016 10:11:53 +0200 Subject: [PATCH] Inject parameters --- .../AppFramework/DependencyInjection/DIContainer.php | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5