From 79da724982c718621b62e16352d26be353c2d545 Mon Sep 17 00:00:00 2001 From: raja <1647193241@qq.com> Date: Mon, 4 Nov 2024 11:46:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=80=90=E5=AE=A1=E8=AE=A1=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E3=80=91=E5=AE=A1=E8=AE=A1=E9=A3=8E=E9=99=A9=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E5=BC=82=E5=B8=B8=20--bug=3D133310627?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/config/default.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/backend/config/default.py b/src/backend/config/default.py index 4850992..ccca228 100644 --- a/src/backend/config/default.py +++ b/src/backend/config/default.py @@ -348,6 +348,19 @@ # 全局配置 BK_SHARED_RES_URL = os.getenv("BKAPP_BK_SHARED_RES_URL", os.getenv("BKPAAS_SHARED_RES_URL", "")) +# CORS 允许的 header +CORS_ALLOW_HEADERS = [ + "x-requested-with", + "content-type", + "accept,origin", + "authorization", + "x-csrftoken", + "user-agent", + "accept-encoding", + "time-zone", + *os.getenv("BKAPP_CORS_ALLOW_HEADERS", "").split(","), +] + """ 以下为框架代码 请勿修改 """