Skip to content

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

Closed

Description

@wz2b

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

Activity

  1. zsfarkas commented on Aug 29, 2016

    @zsfarkas

    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

  2. jandsu commented on Sep 15, 2016

    @jandsu

    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.
    
  3. filipesilva commented on Sep 21, 2016

    @filipesilva
    Contributor

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

  4. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    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.

  5. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions