-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
fetch post 请求获取参数问题 #1848
Comments
我们的 request 默认不是 |
改了试过,也没有效果。各种类型都试过了。 |
不知道你用的是哪个版本的,可以考虑是mock和proxy调用顺序引起的问题。 |
大概是1个月前的版本,mock和proxy调用顺序怎么调整? |
发现jquery的ajax可以获取到值。 |
那就肯定是 Content-Type |
其实就是proxy的问题,这个问题很影响开发,开发的时候不好调试真实数据。 |
这个问题解决了吗?我也遇到了这个问题,用ajax可以用post传参,用antdesignpro里封装的post后台就获取不到前端传入的参数 |
ant design prop 用了 http-proxy-middleware 插件,而这个插件默认不是代理 body 的 |
1、通过tomcat启动端口(8088)发送请求:
Controller可以获取数据:

2、通过ant design pro 配置的proxy 启动的端口(8000)Controller获取不到数据
请问怎么解决?
The text was updated successfully, but these errors were encountered: