Skip to content

Commit

Permalink
chore(app): allow cors
Browse files Browse the repository at this point in the history
  • Loading branch information
arn355 committed Oct 19, 2023
1 parent a5bf566 commit a031196
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from routes.route import router

app = FastAPI()

app.add_middleware(
CORSMiddleware,
allow_origins=['*'],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)

app.include_router(router)

0 comments on commit a031196

Please sign in to comment.