添加跨域CLI

This commit is contained in:
xunbu
2025-11-25 11:10:38 +08:00
parent f283f2faab
commit 87de37e47a
2 changed files with 3 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ def main():
parser.add_argument(
"--cors-regex",
type=str,
default=r"^https?://.*$",
default=r"^(https?://.*|null|file://.*)$",
help="设置 CORS 允许的 Origin 正则表达式。默认为允许所有 HTTP 和 HTTPS 请求。"
)