Vuejs app showing Invalid host header error loop
Generally it is not recommended to disableHostCheck: true
(as it may result in security issues), unless you understand and accept the risks.
Please instead try setting webpack config as follows:
in app root in vue.config.js add
module.exports = { devServer: { public: 'subdomain.domain.ext:port' }};
NB: for apps running on vuejs + nginx