Update app.py
Browse files
app.py
CHANGED
@@ -7,10 +7,13 @@ import threading
|
|
7 |
|
8 |
app = FastAPI()
|
9 |
|
|
|
|
|
|
|
10 |
# Erlaube alle Ursprünge
|
11 |
app.add_middleware(
|
12 |
CORSMiddleware,
|
13 |
-
allow_origins=
|
14 |
allow_credentials=True,
|
15 |
allow_methods=["*"],
|
16 |
allow_headers=["*"],
|
|
|
7 |
|
8 |
app = FastAPI()
|
9 |
|
10 |
+
origins = [ "http://localhost", "http://localhost:8000",] # Füge hier weitere Ursprünge hinzu
|
11 |
+
|
12 |
+
|
13 |
# Erlaube alle Ursprünge
|
14 |
app.add_middleware(
|
15 |
CORSMiddleware,
|
16 |
+
allow_origins=origins
|
17 |
allow_credentials=True,
|
18 |
allow_methods=["*"],
|
19 |
allow_headers=["*"],
|