mirror of
https://github.com/devproje/balance-application.git
synced 2024-10-20 15:11:21 +00:00
feat: cors issue fixed
This commit is contained in:
parent
75e8921073
commit
d9440c4aee
1 changed files with 2 additions and 0 deletions
2
app.py
2
app.py
|
@ -7,6 +7,8 @@ app = FastAPI()
|
||||||
|
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
|
allow_origin=["*"],
|
||||||
|
allow_credentials=True,
|
||||||
allow_methods=["POST, GET, PATCH, DELETE"],
|
allow_methods=["POST, GET, PATCH, DELETE"],
|
||||||
allow_headers=["*"]
|
allow_headers=["*"]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue