From d859e283f60fb93e1cdfee392611911c7f366c26 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 7 Oct 2018 20:50:39 +0200 Subject: [PATCH] cors --- webserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver.py b/webserver.py index e5bcd554..e0825e4e 100644 --- a/webserver.py +++ b/webserver.py @@ -369,10 +369,10 @@ def ses_identify(): "id": fl_session.get("user_id") }) response.headers["Access-Control-Allow-Origin"] = "http://lvh.me:1234" + response.headers["Access-Control-Allow-Credentials"] = True return response - @app.before_request def pre_request(): fl_g.event_started, fl_g.event_progress = db.Halloween.puzzle_status()