Procházet zdrojové kódy

添加前端ip,解决跨域问题

liyuyi@c-top.com.cn před 3 roky
rodič
revize
54ee4f88d2
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      main.py

+ 1 - 0
main.py

@@ -48,6 +48,7 @@ with open('/data/pythonProject/video_to_word/config/config.yaml', mode='r', enco
 threadPool = ThreadPoolExecutor(max_workers=4)
 app = FastAPI()
 origins = [
+    "http://192.168.6.220:3000",
     "http://192.168.1.34",
     "http://192.168.1.34:8000",
     "http://192.168.1.105",