Browse Source

Merge pull request #15871 from Classic298/cors

Enh: dev.sh default port export
Tim Jaeryang Baek 2 tháng trước cách đây
mục cha
commit
0119036a11
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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