This commit is contained in:
王思川 2022-10-09 11:12:47 +08:00
parent c1d7661c97
commit 541ef265a2
1 changed files with 9 additions and 0 deletions

View File

@ -1,9 +1,18 @@
from fastapi import FastAPI, Header, Depends
from fastapi.middleware.cors import CORSMiddleware
from Indicator import indicator
app = FastAPI()
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
# async def get_token_header(authorization: str = Header(...)):
# """