-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Open
Labels
angular/build:dev-serverarea: @angular/buildfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity1: confusingtype: bug/fix
Description
Describe the problem that you experienced
I was using ngrok to serve an Angular app in a remote link but without the configuration in the Angular.json I get an error related to vite configurations.
Enter the URL of the topic with the problem
No response
Describe what you were looking for in the documentation
I don't know if there's a section in the documentation dedicated to this scenario. If so, could we consider adding it? Eventually I could open a PR
Describe the actions that led you to experience the problem
No response
Describe what you want to experience that would fix the problem
The error message generated, in my opinion, is inconsistent with the change to be made, because a vite.config.js file is typically missing. The solution is to edit angular.json by adding the URL generated by ngrok to the allowedHosts array.
Add a screenshot if that helps illustrate the problem
No response
If this problem caused an exception or error, please paste it here
Blocked request. This host ("2759795c2071.ngrok-free.app") is not allowed.
To allow this host, add "2759795c2071.ngrok-free.app" to `server.allowedHosts` in vite.config.js.
If the problem is browser-specific, please specify the device, OS, browser, and version
Provide any additional information here in as much as detail as you can
mouadennaciri
Metadata
Metadata
Assignees
Labels
angular/build:dev-serverarea: @angular/buildfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity1: confusingtype: bug/fix