Merge "Switched order of CORS middleware"
This commit is contained in:
commit
fc51cc9939
@ -76,6 +76,9 @@ def setup_app(pecan_config=None, extra_hooks=None):
|
||||
wrap_app=middleware.ParsableErrorMiddleware,
|
||||
)
|
||||
|
||||
if pecan_config.app.enable_acl:
|
||||
app = acl.install(app, cfg.CONF, pecan_config.app.acl_public_routes)
|
||||
|
||||
# Create a CORS wrapper, and attach ironic-specific defaults that must be
|
||||
# included in all CORS responses.
|
||||
app = cors_middleware.CORS(app, CONF)
|
||||
@ -85,9 +88,6 @@ def setup_app(pecan_config=None, extra_hooks=None):
|
||||
expose_headers=[Version.max_string, Version.min_string, Version.string]
|
||||
)
|
||||
|
||||
if pecan_config.app.enable_acl:
|
||||
return acl.install(app, cfg.CONF, pecan_config.app.acl_public_routes)
|
||||
|
||||
return app
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user