Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

umi3 升级到 umi4以后 proxy 代理问题 #10760

Closed
killdada opened this issue Mar 15, 2023 · 4 comments
Closed

umi3 升级到 umi4以后 proxy 代理问题 #10760

killdada opened this issue Mar 15, 2023 · 4 comments

Comments

@killdada
Copy link

image

原先umi3,配置如上图,disableHostCheck: true , 本地开发没有跨域问题

升级以后 disableHostCheck参数不存在,不支持,导致请求 403, 如果注释掉下面的headers,get请求正常,post请求403

可以怎么调整配置解决这个问题?

@github-actions
Copy link

由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2023
@fz6m
Copy link
Contributor

fz6m commented Mar 15, 2023

给一个最小复现看看。

@killdada
Copy link
Author

image

解决了,通过onProxyReq 设置请求头正常了,不知道为啥之前的配置升级以后不生效

@pxim
Copy link

pxim commented Jul 27, 2023

image

解决了,通过onProxyReq 设置请求头正常了,不知道为啥之前的配置升级以后不生效

image
umi最新版本,我这样配置也不行,心力交瘁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants