From 184ab70edb4348cfa8db069a54d4bec68b2860b9 Mon Sep 17 00:00:00 2001 From: yuanjunjie Date: Wed, 3 Jul 2024 17:20:43 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20test:=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83swagger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nest-admin/servers/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nest-admin/servers/src/main.ts b/nest-admin/servers/src/main.ts index b6f3219..b5f6c7c 100644 --- a/nest-admin/servers/src/main.ts +++ b/nest-admin/servers/src/main.ts @@ -56,7 +56,7 @@ async function bootstrap() { // 生产环境使用 nginx 可以将当前文档地址 屏蔽外部访问 SwaggerModule.setup(`${prefix}/docs`, app, document, { swaggerOptions: { - persistAuthorization: true, + persistAuthorization: false, }, customSiteTitle: 'Nest-Admin API Docs', })