-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
代理localhost没问题,为什么代理127.0.0.1请求会504 #1030
Comments
看下响应内容是什么 |
没有响应内容一直pending,127.0.0.1换成localhost就,可以请问原因有哪些 |
whistle 里面可以看到 |
whistle里可以看到请求,pending一段时间后显示504, 服务端有请求的域名 |
规则里面的 |
改成localhost没问题,想问的是用127.0.0.1为什么不行的原因,以及解决方案 |
看下 devServer 的 allowedHosts 配置 |
allowedHosts: 'all' |
这个是你本地服务问题,你可以简单写个监听 |
本地hosts文件配置
127.0.0.1 localhost
现象
The text was updated successfully, but these errors were encountered: