From 28b97cd2dd97f0c827a329a862b1cad47ab3c8e1 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Tue, 15 Jul 2025 14:51:50 +0800 Subject: [PATCH] fix: Access can only be granted after OpenAPI authentication (#3601) --- .../middleware/doc_headers_middleware.py | 125 ++++++++++++------ 1 file changed, 86 insertions(+), 39 deletions(-) diff --git a/apps/common/middleware/doc_headers_middleware.py b/apps/common/middleware/doc_headers_middleware.py index 67b32023e..556ad6cb0 100644 --- a/apps/common/middleware/doc_headers_middleware.py +++ b/apps/common/middleware/doc_headers_middleware.py @@ -14,52 +14,99 @@ from common.auth import TokenDetails, handles from maxkb.const import CONFIG content = """ - + Document - - + + + + + """.replace("/api/user/profile", CONFIG.get_admin_path() + '/api/user/profile').replace('/admin/login',