From 2484bc4210ce722085991f885b4c9c0e49b98e43 Mon Sep 17 00:00:00 2001 From: Jonas Lindberg Date: Tue, 27 Feb 2024 20:58:07 +0100 Subject: [PATCH] add more cors (#28) --- aitino/__init__.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/aitino/__init__.py b/aitino/__init__.py index b45db89e..545b0873 100644 --- a/aitino/__init__.py +++ b/aitino/__init__.py @@ -25,10 +25,18 @@ app.add_middleware( CORSMiddleware, allow_origins=[ + "http://localhost:5173", + "http://localhost:5174", "http://localhost:8000", - "http://127.0.0.1:8000", "http://localhost:8001", + "http://localhost:8080", "http://localhost:8081", + "http://127.0.0.1:5173", + "http://127.0.0.1:5174", + "http://127.0.0.1:8000", + "http://127.0.0.1:8001", + "http://127.0.0.1:8080", + "http://127.0.0.1:8081", ], allow_credentials=True, allow_methods=["*"],