首页 > 其他分享 >angular在配置hosts后访问出现Invalid host header

angular在配置hosts后访问出现Invalid host header

时间:2023-03-08 09:24:19浏览次数:39  
标签:Invalid header host hosts angular 4205

angular:localhost:4205

hosts: 127.0.0.1 cas.woyujiezhen.com

url输入:cas.woyujiezhen.com:4205

显示invalid host header

解决办法:angular.json 

 

"serve": {
"options": {
"port": 4205,
"disableHostCheck": true
},
}

标签:Invalid,header,host,hosts,angular,4205
From: https://www.cnblogs.com/woyujiezhen/p/17190743.html

相关文章