跳过正文
  1. 文章/

uniapp内网穿透

·149 字·1 分钟·
hujiacheng
作者
hujiacheng
Front-end Developer / Strive To Become Better
目录

内网穿透工具使用ngrok,用来代理uniapp h5页面

ngrok配置
#

官网:https://ngrok.com/

配置token:

ngrok config add-authtoken you_token

配置代理端口:

ngrok http 80

uniapp配置
#

"h5": {
   "devServer": {
       "disableHostCheck": true
   }
}

devServer服务器配置disableHostCheck为true,用于解决页面报错Invalid Host header

相关文章