Inject parameters
This commit is contained in:
parent
4b4990c48f
commit
1b73a63041
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue