|
|
@@ -21,6 +21,8 @@ class InTimeMiddleware(BaseHTTPMiddleware):
|
|
|
"""
|
|
|
|
|
|
async def dispatch(self, request: Request, call_next):
|
|
|
+ if "admin" in request.headers.get("Origin", ""):
|
|
|
+ return await call_next(request)
|
|
|
authorization = request.headers.get("Authorization")
|
|
|
if not authorization:
|
|
|
if settings.IS_OPEN_STORE:
|