import sys
sys.path.append('../')
from fastapi import FastAPI, Request
from fastapi.responses import HTMLResponse, JSONResponse
from fastapi.middleware.cors
西北乱跑娃 -- fastapi设置静态文件以及跨域访问
最新推荐文章于 2024-07-10 16:57:26 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
import sys
sys.path.append('../')
from fastapi import FastAPI, Request
from fastapi.responses import HTMLResponse, JSONResponse
from fastapi.middleware.cors