Natapp solves the problem of invalid host header

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: