Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

dva打包部署后接口报错

本地开启的服务器8080端口,前端框架服务是8001端口,可以正常请求。
打包部署本地服务器请求也没有问题。
但是部署到云服务器时接口却报错。
image
image
express的服务
截屏2020-10-30 10 24 20

bu shu dao y


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

1 Answer

0 votes
by (71.8m points)

试下 localhost改成127.0.0.1


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...