更新 ~/.local/share/eosio/nodeos/config/config.ini
修改或添加
http-validate-host=false

或者 nodeos 启动时添加参数 --http-validate-host=false