Why can’t you stop buying 618?From the technical dimension to explore>>>
recently made a WeChat official account, debugged local projects with WeChat development tools, and needed to do internal network penetration. The agents were configured, and the Invalid Host header error occurred on the page. The FRPs tool was used by FRPs, and finally found the method through Google. In the case of Vue cli version 2. X, modify the devserver object in webpack. Dev.conf.js
and add disablehostcheck: true to forward successfully
1 devServer: {
2 disableHostCheck: true,
3 }
Modify the configuration of Vue. Config. JS
with Vue cli version 3.0
1 module.exports = {
2 devServer: {
3 disableHostCheck: true
4 }
5 }
Similar Posts:
- [Solved] Webpack webpack-dev-server Page Error: cannot get/
- Install wechat, chrome, etc. on Ubuntu 16.04
- [Solved] Unapp H5 Error: Access to XMLHttpRequest at ‘http://www.localtest.com/api/api/v1/job/getPositionList’…
- npm ERR! missing script: dev [How to Solve]
- Webpack packaging error: cannot find module ‘webpack / bin / config yargs’ error reason, [email protected] Step on the pit~
- Vue Project: npm run dev :missing script:dev [How to Solve]
- Invalid Host header
- Vue solves the problem of space and blank line error reporting
- Solve the problem of [WDS] disconnected in the console of Vue cli project at runtime! error
- Error in xxx.js from uglifyjs after elementui upgrade [How to Solve]