FastGPT/projects/app
John Chen 68271c0846
Some checks failed
Build FastGPT images in Personal warehouse / get-vars (push) Has been cancelled
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:amd64 runs-on:ubuntu-24.04]) (push) Has been cancelled
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Has been cancelled
Build FastGPT images in Personal warehouse / release-fastgpt-images (push) Has been cancelled
fix: 修复Plugin代理服务在处理通过nginx转发部署的Plugin服务时,req.headers中的host会导致返回404. (#5801)
问题场景:
当Plugin服务不是直接通过ip\docker内路由直接访问,而是通过nginx做域名转发的方式部署时,30行headers: req.headers会直接将host(此时host=fastgpt主项目的域名)带入,nginx会使用host值判断转发路由,而导致请求无法被正确转发到plugin项目中。
此次修改参照了projects/app/src/pages/api/lafApi/[...path].ts中的做法,同时删除了cookie\host\origin三个header
2025-10-22 16:17:42 +08:00
..
data V4.13.0 features (#5693) 2025-09-24 22:40:31 +08:00
public feature: V4.12.2 (#5525) 2025-08-25 19:19:43 +08:00
scripts V4.13.2 features (#5792) 2025-10-20 19:08:21 +08:00
src fix: 修复Plugin代理服务在处理通过nginx转发部署的Plugin服务时,req.headers中的host会导致返回404. (#5801) 2025-10-22 16:17:42 +08:00
test V4.13.2 features (#5792) 2025-10-20 19:08:21 +08:00
.env.template V4.13.2 features (#5792) 2025-10-20 19:08:21 +08:00
Dockerfile V4.13.2 features (#5792) 2025-10-20 19:08:21 +08:00
next-i18next.config.js V4.9.1 feature (#4206) 2025-03-18 14:40:41 +08:00
next.config.js V4.13.2 features (#5792) 2025-10-20 19:08:21 +08:00
package.json V4.13.2 features (#5792) 2025-10-20 19:08:21 +08:00
tsconfig.json V4.9.1 feature (#4206) 2025-03-18 14:40:41 +08:00