-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
dev-server中的proxyTable如何配置才能正确转发ajax请求呢? #60
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
Comments
嗯,已经修正了,要把 proxy middleware 提到最前。 |
然而并没有什么用还是遇到了这个问题 |
我也遇到了,现在还是转发不了。 |
执行post 和get 可以,再是执行delete和put时遇到点问题 |
这个问题怎么解决的,还是转发不了 |
转发不了。 |
是不是因为target配置问题 |
@WLyKan /yuntujinfu-wap 是我们 tomcat 的 context,必须要的。 楼上为啥都转发不了呢。 |
楼上你们看看这个插件的用法啊,小尤回答的问题是这个插件跟vue-cli结合的时候没写好的问题,具体配置和使用看这里https://github.com/chimurai/http-proxy-middleware |
请求地址 => target: 'http://183.192.191.12:1000', |
发现如何配置都不会被转发。
Update: 发现把app.use(proxy) 放在比较靠前的位置才会生效
The text was updated successfully, but these errors were encountered: