{"id":10498,"date":"2025-04-18T18:02:40","date_gmt":"2025-04-18T10:02:40","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/10498.html"},"modified":"2025-04-18T18:02:40","modified_gmt":"2025-04-18T10:02:40","slug":"%e3%80%90%e5%b7%b2%e8%a7%a3%e5%86%b3%e3%80%91%e5%a4%9a%e7%a7%8d%e6%96%b9%e5%bc%8f%e6%9c%80%e6%96%b0%e8%a7%a3%e5%86%b3invalid-host-header%e6%97%a0%e6%95%88%e7%9a%84%e4%b8%bb%e6%9c%ba%e5%a4%b4","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/10498.html","title":{"rendered":"\u3010\u5df2\u89e3\u51b3\u3011\u591a\u79cd\u65b9\u5f0f\u6700\u65b0\u89e3\u51b3Invalid Host header(\u65e0\u6548\u7684\u4e3b\u673a\u5934)\u670d\u52a1\u5668\u57df\u540d\u8bbf\u95ee\u51fa\u73b0\u7684\u9519\u8bef"},"content":{"rendered":"<p>&#x1f431; \u4e2a\u4eba\u4e3b\u9875&#xff1a;<font color=\"#409EFF\">\u4e0d\u53eb\u732b\u5148\u751f<\/font>&#xff0c;\u516c\u4f17\u53f7&#xff1a;<font color=\"#409EFF\">\u524d\u7aef\u8235\u624b<\/font> &#x1f64b;\u200d\u2642\ufe0f \u4f5c\u8005\u7b80\u4ecb&#xff1a;CSDN\u535a\u5ba2\u4e13\u5bb6\u3001\u5185\u5bb9\u5408\u4f19\u4eba&#xff0c;2023\u65b0\u661f\u8ba1\u5212\u5bfc\u5e08&#xff0c;\u524d\u7aef\u9886\u57df\u4f18\u8d28\u521b\u4f5c\u8005&#xff0c;\u5171\u540c\u5b66\u4e60\u5171\u540c\u8fdb\u6b65&#xff0c;\u4e00\u8d77\u52a0\u6cb9\u5440&#xff01; &#x1f4e2; \u8d44\u6599\u9886\u53d6&#xff1a;\u524d\u7aef\u8fdb\u9636\u8d44\u6599\u53ef\u4ee5\u627e\u6211\u514d\u8d39\u9886\u53d6<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418100238-6802233eeb899.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>Invalid Host header\u8fd9\u4e2a\u62a5\u9519\u5728\u7f51\u4e0a\u6709\u5f88\u591a\u6587\u7ae0\u4ecb\u7ecd\u89e3\u51b3\u529e\u6cd5&#xff0c;\u4f46\u662f\u5f88\u591a\u90fd\u6ca1\u6709\u6ca1\u6709\u7528&#xff0c;\u8fd9\u91cc\u4e3a\u5144\u5f1f\u4eec\u6392\u4e0b\u5751&#xff0c;\u672c\u6587\u7684\u89e3\u51b3\u65b9\u6cd5\u5df2\u7ecf\u9a8c\u8bc1\u6ca1\u6709\u95ee\u9898&#xff0c;\u5144\u5f1f\u4eec\u53ef\u653e\u5fc3\u501f\u9274.<\/p>\n<h2>\u4e00\u3001\u62a5\u9519\u73b0\u8c61<\/h2>\n<p>\u5728yarn serve \u9879\u76ee\u542f\u52a8\u6210\u529f&#xff0c;\u4f46\u662f\u9875\u9762\u663e\u793aInvalid Host header <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418100239-6802233f14388.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u4e8c\u3001\u62a5\u9519\u539f\u56e0\u5206\u6790<\/h2>\n<p>\u65b0\u7248\u7684webpack-dev-server\u51fa\u4e8e\u5b89\u5168\u8003\u8651\u4f1a\u9ed8\u8ba4\u68c0\u67e5hostname&#xff0c;\u7528\u4e8e\u9632\u6b62\u4e0d\u53d7\u4fe1\u4efb\u7684\u4e3b\u673a\u8bbf\u95eeDevServer&#xff0c;\u5f53\u6d4f\u89c8\u5668\u53d1\u51fa\u8bf7\u6c42\u65f6&#xff0c;\u5b83\u4f1a\u4f1a\u68c0\u67e5\u8bf7\u6c42\u4e2d\u7684\u4e3b\u673a\u5934&#xff0c;\u82e5hostname \u6ca1\u6709\u914d\u7f6e\u5728\u5185&#xff0c;\u5219\u4e2d\u65ad\u8bbf\u95ee\u3002<\/p>\n<h2>\u4e09\u3001\u9879\u76ee\u73af\u5883<\/h2>\n<p>Vue3&#xff1a;3.0.0 Npm&#xff1a;6.14.17 Node&#xff1a;16.13.0<\/p>\n<h2>\u56db\u3001\u89e3\u51b3\u65b9\u6848<\/h2>\n<h3>1\u3001allowedHosts<\/h3>\n<p>\u8bbe\u7f6eallowedHosts&#xff0c;\u8fd9\u4e2a\u9009\u9879\u662f\u8bbe\u7f6e\u5141\u8bb8\u8bbf\u95ee\u5f00\u53d1\u670d\u52a1\u5668\u7684\u4e3b\u673a\u5217\u8868\u3002\u5c06\u5176\u8bbe\u7f6e\u4e3a all \u8868\u793a\u5141\u8bb8\u4efb\u4f55\u4e3b\u673a\u8bbf\u95ee\u5f00\u53d1\u670d\u52a1\u5668\u3002\u8fd9\u4e2a\u9009\u9879\u4e0e\u4e3b\u673a\u68c0\u67e5\u76f8\u5173&#xff0c;\u4f46\u5b83\u66f4\u7cbe\u786e\u5730\u63a7\u5236\u54ea\u4e9b\u4e3b\u673a\u53ef\u4ee5\u8bbf\u95ee\u5f00\u53d1\u670d\u52a1\u5668&#xff0c;\u800c\u4e0d\u662f\u5b8c\u5168\u7981\u7528\u4e3b\u673a\u68c0\u67e5\u3002\u4e5f\u53ef\u4ee5\u8bbe\u7f6e\u591a\u4e2a\u4e3b\u673a\u3002\u5177\u4f53\u67e5\u770b\u5b98\u65b9\u6587\u6863allowedHosts\u5b98\u65b9\u4ecb\u7ecd<\/p>\n<ul>\n<li>\u8bbe\u7f6e\u6240\u6709\u4e3b\u673a\u5217\u8868<\/li>\n<\/ul>\n<p><span class=\"token literal-property property\">allowedHosts<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;all&#034;<\/span><\/p>\n<ul>\n<li>\u8bbe\u7f6e\u90e8\u5206\u4e3b\u673a\u5217\u8868<\/li>\n<\/ul>\n<p><span class=\"token literal-property property\">allowedHosts<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;xxx.com&#039;<\/span><span class=\"token punctuation\">,<\/span><span class=\"token string\">&#039;xxx.com&#039;<\/span><span class=\"token punctuation\">]<\/span><\/p>\n<p>\u5177\u4f53\u89e3\u51b3\u5982\u4e0b&#xff1a;<\/p>\n<p><span class=\"token keyword\">const<\/span> <span class=\"token punctuation\">{<\/span> defineConfig <span class=\"token punctuation\">}<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">require<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;&#064;vue\/cli-service&#039;<\/span><span class=\"token punctuation\">)<\/span><br \/>\nmodule<span class=\"token punctuation\">.<\/span>exports <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">defineConfig<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token literal-property property\">transpileDependencies<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token literal-property property\">lintOnSave<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token literal-property property\">devServer<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token literal-property property\">host<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;localhost&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token literal-property property\">port<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">8089<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token literal-property property\">historyApiFallback<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token literal-property property\">allowedHosts<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;all&#034;<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h3>2\u3001disableHostCheck<\/h3>\n<p>\u5728vue-cli\u7248\u672c\u4e3a2.x\u7684\u60c5\u51b5\u4e0b\u8be5\u8bbe\u7f6e\u751f\u6548&#xff0c;disableHostCheck\u5141\u8bb8\u5728\u5f00\u53d1\u670d\u52a1\u5668\u4e2d\u7981\u7528\u4e3b\u673a\u68c0\u67e5\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;Webpack DevServer\u4f1a\u68c0\u67e5\u8bf7\u6c42\u7684\u4e3b\u673a\u662f\u5426\u4e0e\u914d\u7f6e\u4e2d\u7684\u4e3b\u673a\u5339\u914d&#xff0c;\u4ee5\u589e\u52a0\u5b89\u5168\u6027\u3002\u5982\u679c\u914d\u7f6e\u4e2d\u6ca1\u6709\u660e\u786e\u6307\u5b9a\u4e3b\u673a&#xff08;host&#xff09;&#xff0c;Webpack DevServer\u5c06\u53ea\u5141\u8bb8\u672c\u5730\u4e3b\u673a\u8bbf\u95ee&#xff0c;\u4ee5\u9632\u6b62\u6f5c\u5728\u7684\u5b89\u5168\u98ce\u9669\u3002\u901a\u8fc7\u5c06 disableHostCheck \u8bbe\u7f6e\u4e3a true&#xff0c;\u53ef\u4ee5\u5141\u8bb8\u6765\u81ea\u5176\u4ed6\u4e3b\u673a\u7684\u8bf7\u6c42&#xff0c;\u4f46\u8fd9\u53ef\u80fd\u4f1a\u589e\u52a0\u6f5c\u5728\u7684\u5b89\u5168\u98ce\u9669&#xff0c;\u56e0\u6b64\u8c28\u614e\u4f7f\u7528\u3002<\/p>\n<p><span class=\"token keyword\">const<\/span> <span class=\"token punctuation\">{<\/span> defineConfig <span class=\"token punctuation\">}<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">require<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;&#064;vue\/cli-service&#039;<\/span><span class=\"token punctuation\">)<\/span><br \/>\nmodule<span class=\"token punctuation\">.<\/span>exports <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">defineConfig<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token literal-property property\">transpileDependencies<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token literal-property property\">lintOnSave<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token literal-property property\">disableHostCheck<\/span><span class=\"token operator\">:<\/span><span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token literal-property property\">devServer<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token literal-property property\">host<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;localhost&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token literal-property property\">port<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">8089<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u5982\u679cvue-cli\u7248\u672c\u4e3a3.x\u4f7f\u7528\u7684\u65f6\u5019\u4f1a\u62a5\u4e0b\u9762\u7684\u9519\u8bef&#xff1a;<\/p>\n<p><span class=\"token literal-property property\">ValidationError<\/span><span class=\"token operator\">:<\/span> Invalid options object<span class=\"token punctuation\">.<\/span> Dev Server has been initialized using an options object that does not match the <span class=\"token constant\">API<\/span> schema<span class=\"token punctuation\">.<\/span><br \/>\n         <span class=\"token operator\">&#8211;<\/span> options has an unknown property <span class=\"token string\">&#039;disableHostCheck&#039;<\/span><span class=\"token punctuation\">.<\/span> These properties are valid<span class=\"token operator\">:<\/span><br \/>\n           object <span class=\"token punctuation\">{<\/span> allowedHosts<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> bonjour<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> client<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> compress<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> devMiddleware<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> headers<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> historyApiFallback<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> host<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> hot<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> http2<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> https<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> ipc<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> liveReload<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> magicHtml<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> onAfterSetupMiddleware<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> onBeforeSetupMiddleware<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> onListening<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> open<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> port<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> proxy<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> server<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> setupExitSignals<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> setupMiddlewares<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">static<\/span><span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> watchFiles<span class=\"token operator\">?<\/span><span class=\"token punctuation\">,<\/span> webSocketServer<span class=\"token operator\">?<\/span> <span class=\"token punctuation\">}<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418100239-6802233f43b8c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6240\u4ee5\u9700\u8981\u770b\u6e05\u81ea\u5df1\u7684\u7248\u672c\u3002<\/p>\n<h2>\u4e94\u3001\u62d3\u5c55<\/h2>\n<h3>1\u3001historyApiFallback<\/h3>\n<p>\u4e0a\u9762\u4ee3\u7801\u5176\u4e2dhistoryApiFallback\u7528\u4e8e\u5728\u4f7f\u7528 Vue Router \u6216\u7c7b\u4f3c\u7684\u524d\u7aef\u8def\u7531\u5e93\u65f6&#xff0c;\u5904\u7406\u8def\u7531\u5207\u6362\u65f6\u7684\u9875\u9762\u5237\u65b0\u95ee\u9898\u3002\u5f53\u4f60\u4f7f\u7528\u6d4f\u89c8\u5668\u7684\u524d\u8fdb\u548c\u540e\u9000\u6309\u94ae\u6216\u624b\u52a8\u8f93\u5165URL\u65f6&#xff0c;Vue Router\u6216\u5176\u4ed6\u8def\u7531\u5e93\u4f1a\u5728\u524d\u7aef\u8fdb\u884c\u8def\u7531\u5207\u6362&#xff0c;\u4f46\u5982\u679c\u6ca1\u6709\u5408\u9002\u7684\u914d\u7f6e&#xff0c;\u5237\u65b0\u9875\u9762\u65f6\u4f1a\u5bfc\u81f4404\u9519\u8bef\u3002<\/p>\n<p><span class=\"token literal-property property\">historyApiFallback<\/span><span class=\"token operator\">:<\/span><span class=\"token boolean\">true<\/span><\/p>\n<h3>2\u3001transpileDependencies<\/h3>\n<p>transpileDependencies\u7528\u4e8e\u914d\u7f6e\u9700\u8981\u901a\u8fc7 Babel \u8f6c\u8bd1\u7684\u4f9d\u8d56\u6a21\u5757\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff08;false&#xff09;&#xff0c;Vue CLI \u548c Babel \u53ea\u4f1a\u8f6c\u8bd1\u5e94\u7528\u7a0b\u5e8f\u4ee3\u7801&#xff0c;\u800c\u4e0d\u4f1a\u8f6c\u8bd1\u4f9d\u8d56\u6a21\u5757&#xff08;node_modules&#xff09;\u4e2d\u7684\u4ee3\u7801\u3002\u4f46\u6709\u4e9b\u4f9d\u8d56\u6a21\u5757\u53ef\u80fd\u5305\u542b ES6&#043; \u8bed\u6cd5&#xff0c;\u5982\u679c\u4f60\u9700\u8981\u8f6c\u8bd1\u8fd9\u4e9b\u4f9d\u8d56\u6a21\u5757&#xff0c;\u53ef\u4ee5\u4f7f\u7528 transpileDependencies \u8fdb\u884c\u914d\u7f6e\u3002\u4f46\u662ftranspileDependencies: true \u53ea\u4f1a\u5e7f\u5ea6\u904d\u5386\u7f16\u8bd1\u4e09\u65b9\u4f9d\u8d56&#xff0c;\u5bf9\u4e8e\u4f9d\u8d56\u7684\u4f9d\u8d56\u5219\u4e0d\u4f1a\u5904\u7406\u3002<\/p>\n<p><span class=\"token literal-property property\">transpileDependencies<\/span><span class=\"token operator\">:<\/span><span class=\"token boolean\">true<\/span><\/p>\n<p><span class=\"token literal-property property\">transpileDependencies<\/span><span class=\"token operator\">:<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;xxxx&#039;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token comment\">\/\/\u5236\u5b9a\u7279\u5b9a\u7684\u4f9d\u8d56\u8fdb\u884c\u8f6c\u8bd1<\/span><\/p>\n<h3>3\u3001lintOnSave<\/h3>\n<p>lintOnSave \u7528\u4e8e\u63a7\u5236\u5728\u5f00\u53d1\u548c\u4fdd\u5b58\u6587\u4ef6\u65f6\u662f\u5426\u6267\u884c ESLint \u9759\u6001\u4ee3\u7801\u68c0\u67e5\u3002ESLint \u53ef\u4ee5\u5e2e\u52a9\u4f60\u6355\u83b7\u6f5c\u5728\u7684\u4ee3\u7801\u95ee\u9898\u548c\u98ce\u683c\u8fdd\u89c4\u3002<\/p>\n<p>\u5982\u679c\u5c06 lintOnSave \u8bbe\u7f6e\u4e3a true&#xff0c;\u5219\u5728\u4fdd\u5b58\u6587\u4ef6\u65f6&#xff0c;Vue CLI \u4f1a\u81ea\u52a8\u8fd0\u884c ESLint \u68c0\u67e5&#xff0c;\u5982\u679c\u53d1\u73b0\u95ee\u9898&#xff0c;\u5c06\u4f1a\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u62a5\u544a\u9519\u8bef\u548c\u8b66\u544a\u3002 \u5982\u679c\u5c06 lintOnSave \u8bbe\u7f6e\u4e3a false&#xff0c;\u5219\u7981\u7528\u4e86\u81ea\u52a8\u7684 ESLint \u68c0\u67e5&#xff0c;\u4f60\u9700\u8981\u624b\u52a8\u8fd0\u884c\u68c0\u67e5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb9.8w\u6b21\uff0c\u70b9\u8d5e91\u6b21\uff0c\u6536\u85cf96\u6b21\u3002Invalid Host header\u8fd9\u4e2a\u62a5\u9519\u5728\u7f51\u4e0a\u6709\u5f88\u591a\u6587\u7ae0\u4ecb\u7ecd\u89e3\u51b3\u529e\u6cd5\uff0c\u4f46\u662f\u5f88\u591a\u90fd\u6ca1\u6709\u6ca1\u6709\u7528\uff0c\u8fd9\u91cc\u4e3a\u5144\u5f1f\u4eec\u6392\u4e0b\u5751\uff0c**\u672c\u6587\u7684\u89e3\u51b3\u65b9\u6cd5\u5df2\u7ecf\u9a8c\u8bc1\u6ca1\u6709\u95ee\u9898\uff0c\u5144\u5f1f\u4eec\u53ef\u653e\u5fc3\u501f\u9274.**_invalid host header<\/p>\n","protected":false},"author":2,"featured_media":10495,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[457,456,458],"topic":[],"class_list":["post-10498","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-allowedhosts","tag-invalid-host","tag-vue"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u5df2\u89e3\u51b3\u3011\u591a\u79cd\u65b9\u5f0f\u6700\u65b0\u89e3\u51b3Invalid Host header(\u65e0\u6548\u7684\u4e3b\u673a\u5934)\u670d\u52a1\u5668\u57df\u540d\u8bbf\u95ee\u51fa\u73b0\u7684\u9519\u8bef - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/10498.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u5df2\u89e3\u51b3\u3011\u591a\u79cd\u65b9\u5f0f\u6700\u65b0\u89e3\u51b3Invalid Host header(\u65e0\u6548\u7684\u4e3b\u673a\u5934)\u670d\u52a1\u5668\u57df\u540d\u8bbf\u95ee\u51fa\u73b0\u7684\u9519\u8bef - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb9.8w\u6b21\uff0c\u70b9\u8d5e91\u6b21\uff0c\u6536\u85cf96\u6b21\u3002Invalid Host header\u8fd9\u4e2a\u62a5\u9519\u5728\u7f51\u4e0a\u6709\u5f88\u591a\u6587\u7ae0\u4ecb\u7ecd\u89e3\u51b3\u529e\u6cd5\uff0c\u4f46\u662f\u5f88\u591a\u90fd\u6ca1\u6709\u6ca1\u6709\u7528\uff0c\u8fd9\u91cc\u4e3a\u5144\u5f1f\u4eec\u6392\u4e0b\u5751\uff0c**\u672c\u6587\u7684\u89e3\u51b3\u65b9\u6cd5\u5df2\u7ecf\u9a8c\u8bc1\u6ca1\u6709\u95ee\u9898\uff0c\u5144\u5f1f\u4eec\u53ef\u653e\u5fc3\u501f\u9274.**_invalid host header\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/10498.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T10:02:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418100238-6802233eeb899.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/10498.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/10498.html\",\"name\":\"\u3010\u5df2\u89e3\u51b3\u3011\u591a\u79cd\u65b9\u5f0f\u6700\u65b0\u89e3\u51b3Invalid Host header(\u65e0\u6548\u7684\u4e3b\u673a\u5934)\u670d\u52a1\u5668\u57df\u540d\u8bbf\u95ee\u51fa\u73b0\u7684\u9519\u8bef - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T10:02:40+00:00\",\"dateModified\":\"2025-04-18T10:02:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/10498.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/10498.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/10498.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u5df2\u89e3\u51b3\u3011\u591a\u79cd\u65b9\u5f0f\u6700\u65b0\u89e3\u51b3Invalid Host header(\u65e0\u6548\u7684\u4e3b\u673a\u5934)\u670d\u52a1\u5668\u57df\u540d\u8bbf\u95ee\u51fa\u73b0\u7684\u9519\u8bef\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u5df2\u89e3\u51b3\u3011\u591a\u79cd\u65b9\u5f0f\u6700\u65b0\u89e3\u51b3Invalid Host header(\u65e0\u6548\u7684\u4e3b\u673a\u5934)\u670d\u52a1\u5668\u57df\u540d\u8bbf\u95ee\u51fa\u73b0\u7684\u9519\u8bef - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/10498.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u5df2\u89e3\u51b3\u3011\u591a\u79cd\u65b9\u5f0f\u6700\u65b0\u89e3\u51b3Invalid Host header(\u65e0\u6548\u7684\u4e3b\u673a\u5934)\u670d\u52a1\u5668\u57df\u540d\u8bbf\u95ee\u51fa\u73b0\u7684\u9519\u8bef - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb9.8w\u6b21\uff0c\u70b9\u8d5e91\u6b21\uff0c\u6536\u85cf96\u6b21\u3002Invalid Host header\u8fd9\u4e2a\u62a5\u9519\u5728\u7f51\u4e0a\u6709\u5f88\u591a\u6587\u7ae0\u4ecb\u7ecd\u89e3\u51b3\u529e\u6cd5\uff0c\u4f46\u662f\u5f88\u591a\u90fd\u6ca1\u6709\u6ca1\u6709\u7528\uff0c\u8fd9\u91cc\u4e3a\u5144\u5f1f\u4eec\u6392\u4e0b\u5751\uff0c**\u672c\u6587\u7684\u89e3\u51b3\u65b9\u6cd5\u5df2\u7ecf\u9a8c\u8bc1\u6ca1\u6709\u95ee\u9898\uff0c\u5144\u5f1f\u4eec\u53ef\u653e\u5fc3\u501f\u9274.**_invalid host header","og_url":"https:\/\/www.wsisp.com\/helps\/10498.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T10:02:40+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418100238-6802233eeb899.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/10498.html","url":"https:\/\/www.wsisp.com\/helps\/10498.html","name":"\u3010\u5df2\u89e3\u51b3\u3011\u591a\u79cd\u65b9\u5f0f\u6700\u65b0\u89e3\u51b3Invalid Host header(\u65e0\u6548\u7684\u4e3b\u673a\u5934)\u670d\u52a1\u5668\u57df\u540d\u8bbf\u95ee\u51fa\u73b0\u7684\u9519\u8bef - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T10:02:40+00:00","dateModified":"2025-04-18T10:02:40+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/10498.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/10498.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/10498.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u5df2\u89e3\u51b3\u3011\u591a\u79cd\u65b9\u5f0f\u6700\u65b0\u89e3\u51b3Invalid Host header(\u65e0\u6548\u7684\u4e3b\u673a\u5934)\u670d\u52a1\u5668\u57df\u540d\u8bbf\u95ee\u51fa\u73b0\u7684\u9519\u8bef"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/10498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=10498"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/10498\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/10495"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=10498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=10498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=10498"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=10498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}