{"id":1044,"date":"2023-03-12T09:53:07","date_gmt":"2023-03-12T01:53:07","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1044"},"modified":"2023-04-29T13:09:17","modified_gmt":"2023-04-29T05:09:17","slug":"vue-cli-domain-access-invalid-host-header","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/12\/vue-cli-domain-access-invalid-host-header\/","title":{"rendered":"vue-cli\u57df\u540d\u8bbf\u95eeInvalid Host header"},"content":{"rendered":"<p>\u5728<code>webpack.dev.conf.js<\/code>\u4e2d\u6dfb\u52a0\uff1a<code>disableHostCheck: true<\/code><\/p>\n<p><!-- more --><\/p>\n<pre><code class=\"language-javascript\">const devWebpackConfig = merge(baseWebpackConfig, {\n  ...\n\n  \/\/ these devServer options should be customized in \/config\/index.js\n  devServer: {\n    disableHostCheck: true,\n    ...<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5728webpack.dev.conf.js\u4e2d\u6dfb\u52a0\uff1adisableHostCheck: true const de [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-1044","post","type-post","status-publish","format-standard","hentry","category-vue"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1044"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1044\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}