Skip to content

Commit

Permalink
enable cors
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Jun 6, 2024
1 parent fc092c1 commit 10c2b6f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/conferences/api/conference.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
app = get_app()


origins = ["*"]

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

@app.get('/api/conferences', )
async def get_conferences():
return await controller.get_all_conferences()
Expand Down

0 comments on commit 10c2b6f

Please sign in to comment.