内网穿透工具使用ngrok,用来代理uniapp h5页面
ngrok配置#
官网:https://ngrok.com/
配置token:
ngrok config add-authtoken you_token配置代理端口:
ngrok http 80uniapp配置#
"h5": {
"devServer": {
"disableHostCheck": true
}
}devServer服务器配置disableHostCheck为true,用于解决页面报错Invalid Host header
