This commit is contained in:
parent
c1d7661c97
commit
541ef265a2
9
main.py
9
main.py
|
@ -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(...)):
|
||||
# """
|
||||
|
|
Loading…
Reference in New Issue