summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AppFramework/DependencyInjection/DIContainer.php6
1 files changed, 6 insertions, 0 deletions
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