From 6df659fbc518fe4afcf332007e8957d9c96e86cf Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Thu, 4 Nov 2021 13:08:37 +0100 Subject: [PATCH] =?UTF-8?q?Allow=20all=20origins=20=F0=9F=A4=A6?= =?UTF-8?q?=F0=9F=8F=BC=E2=80=8D=E2=99=82=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/main.py b/server/main.py index eba8121..f1e0d2a 100644 --- a/server/main.py +++ b/server/main.py @@ -14,12 +14,13 @@ frontend_url = os.environ.get("FRONTEND_URL", "http://localhost:8080") origins = [ "http://localhost", "http://localhost:8080", - "https://speckle-aectech-masterclass.netlify.app" + "https://speckle-aectech-masterclass.netlify.app", + "http://speckle-aectech-masterclass.netlify.app" ] app.add_middleware( CORSMiddleware, - allow_origins=origins, + allow_origins=["*"], allow_credentials=True, allow_methods=["*"], allow_headers=["*"],