Stop using deprecated CORS.set_latent()
As a follow up to Icd44684b3d05ff6a07665348c08adff8245f2523 Use cors_middleware.set_defaults instead of app.set_latent Change-Id: I44e2d3d54a9b8bd3893625ddf3ff4094a8e294b9
This commit is contained in:
parent
7757d22f12
commit
b26e22499c
|
@ -122,7 +122,7 @@ def setup_app(config=None):
|
|||
# Create a CORS wrapper, and attach iotronic-specific defaults that must be
|
||||
# included in all CORS responses.
|
||||
app = cors_middleware.CORS(app, CONF)
|
||||
app.set_latent(
|
||||
cors_middleware.set_defaults(
|
||||
allow_headers=[base.Version.max_string, base.Version.min_string,
|
||||
base.Version.string],
|
||||
allow_methods=['GET', 'PUT', 'POST', 'DELETE', 'PATCH'],
|
||||
|
|
Loading…
Reference in New Issue