Skip to content
Snippets Groups Projects
Commit 502860c9 authored by Rivers, Travis (Contractor) Creighton's avatar Rivers, Travis (Contractor) Creighton
Browse files

alphabet

parent 3fe9d253
No related branches found
No related tags found
2 merge requests!146Release CMO metadata to production,!19CORS Middleware
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment