Skip to content

Commit

Permalink
Merge pull request #9 from theory-of-comedy/dev
Browse files Browse the repository at this point in the history
chore(app): allow cors
  • Loading branch information
arn355 authored Oct 19, 2023
2 parents 25d50a9 + a031196 commit 961d98e
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 961d98e

Please sign in to comment.