From 404dbea005607f2dd132bc9d1b15493cb9b7e6e2 Mon Sep 17 00:00:00 2001 From: waylon <1158341873@qq.com> Date: Wed, 14 May 2025 17:27:33 +0800 Subject: [PATCH] feat: apigw cors sync update & release runtime 2.0.11 --- runtime/bk-plugin-runtime/bk_plugin_runtime/__version__.py | 2 +- .../bk-plugin-runtime/bk_plugin_runtime/config/default.py | 6 +++--- runtime/bk-plugin-runtime/pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/bk-plugin-runtime/bk_plugin_runtime/__version__.py b/runtime/bk-plugin-runtime/bk_plugin_runtime/__version__.py index a1a6614..4a6b53f 100644 --- a/runtime/bk-plugin-runtime/bk_plugin_runtime/__version__.py +++ b/runtime/bk-plugin-runtime/bk_plugin_runtime/__version__.py @@ -10,4 +10,4 @@ specific language governing permissions and limitations under the License. """ -__version__ = "2.0.10" +__version__ = "2.0.11" diff --git a/runtime/bk-plugin-runtime/bk_plugin_runtime/config/default.py b/runtime/bk-plugin-runtime/bk_plugin_runtime/config/default.py index a8b948f..64b6422 100644 --- a/runtime/bk-plugin-runtime/bk_plugin_runtime/config/default.py +++ b/runtime/bk-plugin-runtime/bk_plugin_runtime/config/default.py @@ -243,6 +243,6 @@ def logging_addition_settings(logging_dict): BK_PLUGIN_APIGW_BACKEND_SUB_PATH = url_parse.path.lstrip("/") BK_PLUGIN_APIGW_BACKEND_SCHEME = url_parse.scheme or "http" -BK_APIGW_CORS_ALLOW_ORIGINS = [s for s in os.getenv("BK_APIGW_CORS_ALLOW_ORIGINS", "").split(",") if s] -BK_APIGW_CORS_ALLOW_METHODS = [s for s in os.getenv("BK_APIGW_CORS_ALLOW_METHODS", "").split(",") if s] -BK_APIGW_CORS_ALLOW_HEADERS = [s for s in os.getenv("BK_APIGW_CORS_ALLOW_HEADERS", "").split(",") if s] +BK_APIGW_CORS_ALLOW_ORIGINS = os.getenv("BK_APIGW_CORS_ALLOW_ORIGINS", "") +BK_APIGW_CORS_ALLOW_METHODS = os.getenv("BK_APIGW_CORS_ALLOW_METHODS", "") +BK_APIGW_CORS_ALLOW_HEADERS = os.getenv("BK_APIGW_CORS_ALLOW_HEADERS", "") diff --git a/runtime/bk-plugin-runtime/pyproject.toml b/runtime/bk-plugin-runtime/pyproject.toml index 6ffdd3f..0afcd7b 100644 --- a/runtime/bk-plugin-runtime/pyproject.toml +++ b/runtime/bk-plugin-runtime/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bk-plugin-runtime" -version = "2.0.10" +version = "2.0.11" description = "bk plugin python django runtime" authors = ["Your Name "] license = "MIT"