diff --git a/src/backend/config/default.py b/src/backend/config/default.py index 48509928..ccca228f 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(","), +] + """ 以下为框架代码 请勿修改 """ diff --git a/src/frontend/src/views/statement-manage/detail/index.vue b/src/frontend/src/views/statement-manage/detail/index.vue index c9455350..1acc456e 100644 --- a/src/frontend/src/views/statement-manage/detail/index.vue +++ b/src/frontend/src/views/statement-manage/detail/index.vue @@ -22,6 +22,7 @@