From d8a5055a7d54adece6c820e71cfcfbda85f6ceff Mon Sep 17 00:00:00 2001 From: Stefan Negru Date: Fri, 17 Jan 2020 09:32:53 +0200 Subject: [PATCH] add CORS headers for max age and allowed methods --- beacon_api/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beacon_api/app.py b/beacon_api/app.py index cac8d399..04feba1a 100644 --- a/beacon_api/app.py +++ b/beacon_api/app.py @@ -94,6 +94,8 @@ def set_cors(server): allow_credentials=True, expose_headers="*", allow_headers="*", + allow_methods=["GET", "POST", "OPTIONS"], + max_age=86400, ) }) # Apply CORS to endpoints