Skip to content

support exclusion option for --proxy-config #3193

Closed
@tsvendsen

Description

@tsvendsen

I have a setup running with backends that may change their paths.
I've managed to get things proxied very well with the --proxy-config option.

my proxy is set up like this

"/": {
"target": {
"host": ,
"port":
},
"ws": false
}

It proxies all requests, except the paths inside my project which is what I want. The only exception is that it also tries to proxy the /assets which is included by angular-cli.

Either I would like this path to be excluded by default, or an option to pass in exclusion urls.
According to http-proxy-middleware it should be possible, it seems like the option just isn't available through angular cli? (https://github.com/chimurai/http-proxy-middleware#context-matching)

Please guide me if I'm wrong, but I think it would be useful to have an exclusion option to the proxy config, as this might be useful in other cases where you may only want to proxy some paths in a context

OS?

all

Versions.

angular-cli: 1.0.0-beta.20-4
node: 7.1.0
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