NGROK——Invalid Host header

简介: NGROK——Invalid Host header

前言

本地的vue项目,内网穿透给外部人查看,访问链接的时候,提示Invalid Host header

内容

webpack.dev.config.js配置文件中的devServer增加disableHostCheck: true

module.exports = {
  devServer: {
    open: true,
    // 内网穿透
    disableHostCheck: true
  },
}

学无止境,谦卑而行.

目录
相关文章
|
1月前
|
缓存 安全 应用服务中间件
nginx配置proxy_set_header
nginx配置proxy_set_header
|
6月前
|
缓存 网络安全 开发工具
Git服务器报错:host key for (ip地址) has changed and you have requested strict checking
Git服务器报错:host key for (ip地址) has changed and you have requested strict checking
533 0
内网穿透报错 Invalid Host header
内网穿透报错 Invalid Host header
540 0
|
应用服务中间件
Error:Remote staging type or host is not specified.
Error:Remote staging type or host is not specified.
155 0
|
Java Spring
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
3510 1
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
|
应用服务中间件 nginx
Invalid Host header 服务器域名访问出现的问题
Invalid Host header 服务器域名访问出现的问题
2161 0
Invalid Host header 服务器域名访问出现的问题
|
应用服务中间件 PHP nginx
nginx log 错误502 upstream sent too big header while reading response header from upstream
cookies的值超出了范围我是说 看看了一下日志 错误502 upstream sent too big header while reading response header from upstream   sudo gedit /var/log/nginx/error.
5475 0
|
Linux 网络安全
WARNING:The remote SSH server rejected X11 forwarding request.
WARNING:The remote SSH server rejected X11 forwarding request.
202 0
WARNING:The remote SSH server rejected X11 forwarding request.
location.host和location.hostname区别
location.host和location.hostname区别
146 0
成功解决404 Not Found Not Found The requested URL was not found on the server. If yo
成功解决404 Not Found Not Found The requested URL was not found on the server. If yo