本地开发无法通过本机配置的域名访问
Aperta
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 1
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**bug描述**
本地启动项目,只能通过ip访问项目,无法通过 hosts 中配置的域名访问
**步骤复现**
出现问题的前置步骤
1. 在 hosts 中配置 `127.0.0.1 xxx.com`
2. 启动项目
3. 通过 xxx.com:3005 访问项目
4. 提示 `Invalid Host header`
**期望的改进效果**
通过 hosts 中配置的域名可访问项目
**屏幕截图**

**运行环境 (务必填写以便于我们复现):**
- OS: [macOS 11.3]
- Browser [chrome]
- Version [91]
**开发工具版本 (easyv -V查看):**
- @easyv/cli: [1.4.0]
- @easyv/react-component-builder: [0.11.9]
**其他信息**
在此处添加有关该问题的任何其他上下文。
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.