Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecated option proxyHost was replaced with changeOrigin parameter #892

Merged
merged 1 commit into from
Nov 18, 2015
Merged

deprecated option proxyHost was replaced with changeOrigin parameter #892

merged 1 commit into from
Nov 18, 2015

Conversation

aksakalli
Copy link

generator-gulp-angular has dependency to ~0.9.0 of http-proxy-middleware.

When you remove comments from the proxy configuration line in gulp/server.js of generated project and run it; you would get a warning:

*************************************
[HPM] Deprecated "option.proxyHost"
      Use "option.changeOrigin" or "option.headers.host" instead
      "option.proxyHost" will be removed in future release.
*************************************

So proxyHost option has changed to proxyHost flag as suggested. Also see http-proxy-middleware v0.9.0 README.md:

  • (DEPRECATED) option.proxyHost: Use option.changeOrigin = true instead.

@Swiip
Copy link
Owner

Swiip commented Nov 18, 2015

It has changed since I did this, thanks.

Swiip added a commit that referenced this pull request Nov 18, 2015
deprecated option proxyHost was replaced with changeOrigin parameter
@Swiip Swiip merged commit 3400791 into Swiip:master Nov 18, 2015
@zckrs zckrs mentioned this pull request Nov 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants