diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-07-22 10:11:53 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-07-22 10:12:26 +0200 |
commit | 1b73a630411f375c3250d8c80ff050a3edbd1c35 (patch) | |
tree | 58e1a7ec8dd88357e0cf114ef1a13e4dfb558959 | |
parent | 4b4990c48fd4c6841bde260b2b2e1bc665b46e1c (diff) | |
download | nextcloud-server-1b73a630411f375c3250d8c80ff050a3edbd1c35.tar.gz nextcloud-server-1b73a630411f375c3250d8c80ff050a3edbd1c35.zip |
Inject parameters
-rw-r--r-- | lib/private/AppFramework/DependencyInjection/DIContainer.php | 6 |
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 |