diff --git a/pygeoapi/starlette_app.py b/pygeoapi/starlette_app.py index f2d15f221..fe5ddae16 100644 --- a/pygeoapi/starlette_app.py +++ b/pygeoapi/starlette_app.py @@ -637,7 +637,7 @@ async def __call__(self, scope: Scope, # CORS: optionally enable from config. if CONFIG['server'].get('cors', False): from starlette.middleware.cors import CORSMiddleware - APP.add_middleware(CORSMiddleware, allow_origins=['*'], allow_methods=['*']) + APP.add_middleware(CORSMiddleware, allow_origins=['*'], allow_methods=['*']) # noqa try: OGC_SCHEMAS_LOCATION = Path(CONFIG['server']['ogc_schemas_location'])