You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't use an array of hostnames in --allowedHosts cli parameter in @angular/build:dev-server #33955
"allowedHosts": {
+ "type": "array",
"description": "The hosts that the development server will respond to. This option sets the Vite option of the same name. For further details: https://vite.dev/config/server-options.html#server-allowedhosts",
"default": [],
+ "items": {+ "type": "string"+ }- "oneOf": [- {- "type": "array",- "description": "A list of hosts that the development server will respond to.",- "items": {- "type": "string"- }- },- {- "type": "boolean",- "description": "Indicates that all hosts are allowed. This is not recommended and a security risk."- }- ]
},
@see issue * PR for the devkit commit that added the option:
It note that @angular-devkit/build-angular:dev-server also has a (custom?) --disableHostCheck parameter which sets allowedHosts to true if passed, so then disable all hosts situation can be covered as schema no longer allows boolean, only array.
Activity