diff --git a/app/app.py b/app/app.py index 66b7d16..b329998 100644 --- a/app/app.py +++ b/app/app.py @@ -2,7 +2,6 @@ import os from fastapi import FastAPI, Security, File, UploadFile -#newly added for the cors problem from fastapi.middleware.cors import CORSMiddleware from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials from .schema import ( @@ -35,7 +34,6 @@ from .user import get_user_menu app = FastAPI() -# app/app.py app.add_middleware( CORSMiddleware, @@ -48,6 +46,7 @@ allow_methods=["*"], allow_headers=["*"], ) + security = HTTPBearer() @app.get("/health", tags=["health"])