vue-cli icon indicating copy to clipboard operation
vue-cli copied to clipboard

proxy 配置 ajax 请求怎么无效呢

Open geekpeng opened this issue 10 years ago • 4 comments

vue-cli 生成的项目,配置代理没有作用... 求解答:

配置是参数这个文档来的

http://vuejs-templates.github.io/webpack/proxy.html

配置了代理但还是请求到了localhost

使用的是 http-proxy-middleware

知道是怎么回事了, 因为开了VPN

geekpeng avatar Apr 21 '16 09:04 geekpeng

I've figured it out thanks to a previous issue raised: https://github.com/niklasvh/html2canvas/issues/506

It's caused by using too high of a border-radius; their JSFiddle helped me narrow down the issue: http://jsfiddle.net/gmz0wnwr/

And here is mine working: http://jsfiddle.net/gmz0wnwr/1/

mattdell avatar Feb 11 '15 15:02 mattdell

+1

mlyknown avatar Apr 22 '16 14:04 mlyknown

https://forum-archive.vuejs.org/topic/5129/vue-cli%E7%9A%84proxytable%E4%BB%A3%E7%90%86%E6%97%A0%E6%95%88/2

同样的问题。

zzmm1 avatar Apr 12 '17 06:04 zzmm1

+1,有人解决了吗?

Pines-Cheng avatar Apr 26 '17 17:04 Pines-Cheng

+1

morrain avatar Oct 19 '17 09:10 morrain

Fixed in 1.0.0

niklasvh avatar Dec 12 '17 03:12 niklasvh