From 3efe6251187afefe59222e16d00c840603bdd9ad Mon Sep 17 00:00:00 2001 From: Agent Date: Tue, 14 Jul 2026 19:58:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=8C=E5=85=A8=E7=A6=81=E7=94=A8helm?= =?UTF-8?q?et=20CSP=EF=BC=88contentSecurityPolicy:=20false=EF=BC=89?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E5=86=B39110=E9=A6=96=E9=A1=B5=E7=A9=BA?= =?UTF-8?q?=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/index.js b/backend/src/index.js index 4e0a03a..5b3f75a 100644 --- a/backend/src/index.js +++ b/backend/src/index.js @@ -12,6 +12,7 @@ const PORT = process.env.PORT || 3000; app.use(helmet({ crossOriginResourcePolicy: { policy: 'cross-origin' }, crossOriginOpenerPolicy: { policy: 'unsafe-none' }, // 允许脚本执行 + contentSecurityPolicy: false, // 完全禁用CSP(避免阻止模块脚本) })); app.use(cors()); app.use(express.json());