From 502860c99ad0f37c542701d55895afbd7c877a5e Mon Sep 17 00:00:00 2001 From: Travis Rivers <trivers@contractor.usgs.gov> Date: Thu, 3 Sep 2020 10:43:28 -0600 Subject: [PATCH] alphabet --- geomagio/api/ws/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geomagio/api/ws/app.py b/geomagio/api/ws/app.py index 8d72e3261..6f2c49e55 100644 --- a/geomagio/api/ws/app.py +++ b/geomagio/api/ws/app.py @@ -34,11 +34,11 @@ app.include_router(observatories.router) @app.middleware("http") async def add_headers(request: Request, call_next): response = await call_next(request) - response.headers["Access-Control-Allow-Origin"] = "*" - response.headers["Access-Control-Allow-Methods"] = "*" response.headers[ "Access-Control-Allow-Headers" ] = "accept, origin, authorization, content-type" + response.headers["Access-Control-Allow-Methods"] = "*" + response.headers["Access-Control-Allow-Origin"] = "*" response.headers["Cache-Control"] = "max-age=60" return response -- GitLab