[筆記] vue-cli-service serve: Invalid Host header
Add `devServer > disableHostCheck` in `vue.config.js`
```javascript
module.exports = {
//...
devServer: {
disableHostCheck: true,
}
}
```
Reference:
- https://github.com/vuejs-templates/webpack/issues/1205
- https://blog.csdn.net/guzhao593/article/details/85918869
2021-02-04 23:58:56
留言
Last fetch: --:--
現在還沒有留言!