Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

本地开发无法通过本机配置的域名访问

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react
Domain
cli

Research direction

Start by reproducing the issue with the @easyv/cli 1.4.0 development setup, using a hosts entry for xxx.com and port 3005. Locate the host validation that produces “Invalid Host header”; done means the configured local domain loads successfully while direct IP access still works.

Written by the indexing model from the issue text.

Description

bug描述
本地启动项目,只能通过ip访问项目,无法通过 hosts 中配置的域名访问

步骤复现
出现问题的前置步骤

  1. 在 hosts 中配置 127.0.0.1 xxx.com
  2. 启动项目
  3. 通过 xxx.com:3005 访问项目
  4. 提示 Invalid Host header

期望的改进效果
通过 hosts 中配置的域名可访问项目

屏幕截图
wecom-temp-f610ae1c581d512661572f1c787a2d72

运行环境 (务必填写以便于我们复现):

  • OS: [macOS 11.3]
  • Browser [chrome]
  • Version [91]

开发工具版本 (easyv -V查看):

  • @easyv/cli: [1.4.0]
  • @easyv/react-component-builder: [0.11.9]

其他信息
在此处添加有关该问题的任何其他上下文。

Dominant language
No language data
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.