添加cors说明

This commit is contained in:
xunbu
2025-11-25 11:12:59 +08:00
parent 87de37e47a
commit 1ed0f0c849
3 changed files with 10 additions and 0 deletions

View File

@@ -147,6 +147,9 @@ docutranslate -i
# Start on a specific port
docutranslate -i -p 8011
# Allow Cross-Origin Requests
docutranslate -i --cors
# You can also specify the port via an environment variable
export DOCUTRANSLATE_PORT=8011
docutranslate -i

View File

@@ -137,6 +137,9 @@ docutranslate -i
# ポートを指定して起動
docutranslate -i -p 8011
# クロスオリジンリクエストを許可する
docutranslate -i --cors
# 環境変数でポートを指定することもできます
export DOCUTRANSLATE_PORT=8011
docutranslate -i

View File

@@ -132,6 +132,10 @@ docutranslate -i
# 指定端口启动
docutranslate -i -p 8011
# 允许跨域请求
docutranslate -i --cors
# 也可以通过环境变量指定端口
export DOCUTRANSLATE_PORT=8011
docutranslate -i