Skip to content

Commit

Permalink
cors debug
Browse files Browse the repository at this point in the history
  • Loading branch information
cipher982 committed May 13, 2024
1 parent 62d77d9 commit f6d273f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ async def http_exception_handler(request: Request, exc: StarletteHTTPException):
app.add_middleware(
CORSMiddleware,
allow_origins=[
"http://localhost",
"http://localhost:8080",
"http://marchmadness.drose.io:50001",
"https://marchmadness.drose.io",
"http://api.marchmadness.drose.io",
"http://api.marchmadness.drose.io:50001",
"https://api.marchmadness.drose.io",
# "http://localhost",
# "http://localhost:8080",
# "http://marchmadness.drose.io:50001",
# "https://marchmadness.drose.io",
# "http://api.marchmadness.drose.io",
# "http://api.marchmadness.drose.io:50001",
# "https://api.marchmadness.drose.io",
"*",
],
allow_credentials=True,
allow_methods=["*"],
Expand Down

0 comments on commit f6d273f

Please sign in to comment.