Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ app = FastAPI()
|
|
15 |
# Configure CORS
|
16 |
app.add_middleware(
|
17 |
CORSMiddleware,
|
18 |
-
allow_origins=["
|
19 |
allow_credentials=True,
|
20 |
allow_methods=["*"], # Allows all methods
|
21 |
allow_headers=["*"], # Allows all headers
|
|
|
15 |
# Configure CORS
|
16 |
app.add_middleware(
|
17 |
CORSMiddleware,
|
18 |
+
allow_origins=["aiphotographer.github.io"], # Allows only this origin
|
19 |
allow_credentials=True,
|
20 |
allow_methods=["*"], # Allows all methods
|
21 |
allow_headers=["*"], # Allows all headers
|