Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -35,7 +34,6 @@
from .user import get_user_menu

app = FastAPI()
# app/app.py

app.add_middleware(
CORSMiddleware,
Expand All @@ -48,6 +46,7 @@
allow_methods=["*"],
allow_headers=["*"],
)

security = HTTPBearer()

@app.get("/health", tags=["health"])
Expand Down
Loading