Skip to content

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

Closed
@wz2b

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

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