浏览代码

Merge pull request #15871 from Classic298/cors

Enh: dev.sh default port export
Tim Jaeryang Baek 2 月之前
父节点
当前提交
0119036a11
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      backend/dev.sh

+ 2 - 1
backend/dev.sh

@@ -1,2 +1,3 @@
+export CORS_ALLOW_ORIGIN=http://localhost:5173/
 PORT="${PORT:-8080}"
-uvicorn open_webui.main:app --port $PORT --host 0.0.0.0 --forwarded-allow-ips '*' --reload
+uvicorn open_webui.main:app --port $PORT --host 0.0.0.0 --forwarded-allow-ips '*' --reload