Nuxt.js uses ngrok private network to forward and access Invalid Host header

problem description

nuxt.js uses ngrok private network forwarding to access Invalid Host header

the environmental background of the problems and what methods you have tried

in vue, you can add the following webpack-dev-server configuration to webpack.base.config.js in the build directory: devServer: {disableHostCheck: true,}.

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

how to solve this problem in nuxt.js?

Jun.20,2022
Menu