You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The application object accepts some config objects that we have internal special handling for, e.g., Logging, CSRF, Allowed Hosts, and CORS.
These things could be configured by plugin which would be more consistent with other things that are configured on the application, and would help reduce the number of parameters that the application object receives.
One advantage of the current setup is that we can set the explicitly put middleware for those things in the stack first, whereas via plugin we'd either need to rely on the user to order plugins appropriately, or define some prioritization scheme.
Summary
The application object accepts some config objects that we have internal special handling for, e.g., Logging, CSRF, Allowed Hosts, and CORS.
These things could be configured by plugin which would be more consistent with other things that are configured on the application, and would help reduce the number of parameters that the application object receives.
One advantage of the current setup is that we can set the explicitly put middleware for those things in the stack first, whereas via plugin we'd either need to rely on the user to order plugins appropriately, or define some prioritization scheme.
Basic Example
No response
Drawbacks and Impact
No response
Unresolved questions
No response
Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard
The text was updated successfully, but these errors were encountered: