Skip to content

path can't be set in proxyReqOptDecorator as documented #243

Closed
@BasHamer

Description

@BasHamer

if the proxyReqPathResolver method is not provided but you set the path in proxyReqOptDecorator then the path gets overwritten with the original path by the default for proxyReqPathResolver.

code:
proxyReqOptDecorator : function(proxyReq, originalReq) {
proxyReq.path = 'bob';
return proxyReq;
},

by itself will have no effect, you need to add
proxyReqPathResolver: function(req) {
return 'bob';
},

to make that work.

The documentation is misleading on this subject :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions