| May |
JUN |
Jul |
|
02 |
|
| 2024 |
2025 |
2026 |
About this capture
The Wayback Machine - http://web.archive.org/web/20250602181914/https://github.com/angular/angular-cli/issues/15967
Skip to content
Navigation Menu
Appearance settings
●
GitHub Copilot
Write better code with AI
GitHub Models
Manage and compare prompts
GitHub Advanced Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
●
●
●
●
●
●
By company size
●
●
●
●
By use case
●
●
●
●
By industry
●
●
●
●
●
View all solutions
●
Topics
●
●
●
●
●
Explore
●
●
●
●
●
●
●
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
●
●
●
●
Enterprise platform
AI-powered developer platform
Available add-ons
GitHub Advanced Security
Enterprise-grade security features
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
●
Search or jump to...
Clear
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
To see all available qualifiers, see our documentation.
Appearance settings
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 }}
angular
/
angular-cli
Public
●
Notifications
You must be signed in to change notification settings
●
Fork
12k
Star
26.9k
●
Code
●
Issues
276
●
Pull requests
19
●
Actions
●
Security
Uh oh!
There was an error while loading. Please reload this page.
●
Insights
Additional navigation options
●
Code
●
Issues
●
Pull requests
●
Actions
●
Security
●
Insights
New issue
Copy link
New issue
Copy link
Closed
Closed
devserver changeOrigin does not work when I set --host flag#15967
Copy link
Labels
area: @angular-devkit/build-angulardevkit/build-angular:browserfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyneeds: investigationRequires some digging to determine if action is neededRequires some digging to determine if action is neededseverity3: brokentype: bug/fix
Milestone
Â
Backlog
Description
kooritea
opened onOct 29, 2019
Issue body actions
ð Bug report
Command (mark with an x)
- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
i don't know,
I only used 8.3.6
Description
A clear and concise description of the problem...
devserver changeOrigin is not work when I set --host flag
ð¬ Minimal Reproduction
// proxy.conf.js
module.exports = {
"/": {
"target": "https://api.example.com/",
"changeOrigin": true,
"secure": false,
bypass: function (req, res, proxyOptions) {
// do filter
}
}
}
ng serve --host 192.168.1.233 --open
but the http header origin is not change,I can find the origin is "http://192.168.1.233" on my remote api server
ng serve --open
all is well
ð¥ Exception or Error
ð Your Environment
Assignees
No one assigned
Labels
area: @angular-devkit/build-angulardevkit/build-angular:browserfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyneeds: investigationRequires some digging to determine if action is neededRequires some digging to determine if action is neededseverity3: brokentype: bug/fix
Type
No type
Projects
No projects
Milestone
BacklogNo due date
Relationships
None yet
Development
No branches or pull requests
Issue actions
Footer
© 2025 GitHub, Inc.
●
Terms
●
Privacy
●
Security
●
Status
●
Docs
●
Contact
●
●
ation
You canât perform that action at this time.