Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
332 views
in Technique[技术] by (71.8m points)

webpack-dev-server跨域失败

clipboard.png

clipboard.png
访问文件都访问不到

clipboard.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

首先你要搞清楚,这个proxyTable 的设置http-proxy-middleware
你的context 是 ajax,然而我看你的连接并没有 ajax. 倒是 AjaxPage 是什么鬼?? 这样你的请求,根本就不会走proxy..

如果要URL走proxy,你的连接必须是这样的http://localhost:8080/ajax/xxx/xxx.aspx?a=1&b=2


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
...