Skip to content

Commit

Permalink
adding middlware back in
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Mar 19, 2024
1 parent 9126199 commit 37b1673
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
26 changes: 13 additions & 13 deletions src/core/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ def init_routers(_app: FastAPI) -> None:

def make_middleware() -> list[Middleware]:
middleware = [
# Middleware(
# CORSMiddleware,
# allow_origins=[
# "http://osrsbotdetector.com/",
# "https://osrsbotdetector.com/",
# "http://localhost",
# "http://localhost:8080",
# ],
# allow_credentials=True,
# allow_methods=["*"],
# allow_headers=["*"],
# ),
# Middleware(LoggingMiddleware),
Middleware(
CORSMiddleware,
allow_origins=[
"http://osrsbotdetector.com/",
"https://osrsbotdetector.com/",
"http://localhost",
"http://localhost:8080",
],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
),
Middleware(LoggingMiddleware),
]
return middleware

Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# conftest.py
import asyncio
import os
import sys
from contextlib import asynccontextmanager
Expand Down

0 comments on commit 37b1673

Please sign in to comment.