Skip to content

Proxy with '**' suppresses URLs with parameters #86

Closed
@Kyrodan

Description

@Kyrodan

Expected behavior

apiProxy1 should match:
/something/myapp/api?param=value => should match to http://www.example.org/otherapi?param=value

apiProxy2 should not be necessary.

Actual behavior

apiProxy1:
/something/myapp/api => matches to http://www.example.org/otherapi
/something/myapp/api?param=value => does not match

apiProxy2:
/something/myapp/api => matches to http://www.example.org/otherapi
/something/myapp/api?param=value => matches to http://www.example.org/otherapi?param=value

Setup

  • http-proxy-middleware: 0.16.0
  • server: connect 2.30.0

proxy middleware configuration

var apiProxy1 = proxy('/**/myapp/api', {target:'http://www.example.org/otherapi', changeOrigin:true});
var apiProxy2 = proxy('/**/myapp/api*', {target:'http://www.example.org/otherapi', changeOrigin:true});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions