Skip to content

angular-cli@webpack option --proxy does not work #1877

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

Closed
wz2b opened this issue Aug 29, 2016 · 4 comments
Closed

angular-cli@webpack option --proxy does not work #1877

wz2b opened this issue Aug 29, 2016 · 4 comments

Comments

@wz2b
Copy link

wz2b commented Aug 29, 2016

The '--proxy' option does not work - or at least does not work the same as it did with the systemjs version. For example, I can run:

ng serve --proxy http://example.com

and request using Http:

http.get("/api/xyzzy").suscribe( xxxx );

and I can see it makes a request of the local server but the local server returns the application entry page (index.html).

This version of angular-cli calls out:

"ember-cli": "2.5.0"

which calls out:

"http-proxy": "^1.9.0",

and I have verified that both these are present at those versions.

Linux - Ubuntu 14,04
angular-cli: 1.0.0-beta.11-webpack.2
node: 6.2.1
os: linux x64

@zsfarkas
Copy link

It seems to be [closed.] #1487 -> I am hoping to get it soon...

And there is a hack if you want to use the latest beta (webpack.2): #1712

@jandsu
Copy link

jandsu commented Sep 15, 2016

It seems Angular CLI 1.0.0-beta.11-webpack.9-4 is mixing up --proxy and --proxy-config options:

$ ng serve --proxy https://foo.bar.com
Proxy config file /home/me/code/app/https:/foo.bar.com does not exist.

@filipesilva
Copy link
Contributor

It doesn't work in the same way, no. You can see some documentation in #1896, it's going to be merged soon.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants