From ee9035a9464096ef507362d77187094816d1d610 Mon Sep 17 00:00:00 2001 From: Joshua Hegedus Date: Tue, 16 Apr 2024 10:41:56 +0200 Subject: [PATCH] trying to fix cors --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 7ae5792..7b18f08 100644 --- a/main.py +++ b/main.py @@ -19,11 +19,12 @@ version="1.0.0" ) +origins = ["*"] + app.add_middleware( CORSMiddleware, - allow_origins=["*"], + allow_origins=origins, allow_credentials=True, - allow_methods=["*"], allow_headers=["*"], )