Skip to content

Adding body-parser-midddleware breaks proxy #363

@ashleahhill

Description

@ashleahhill

Our application uses json-server as a module to fill in the holes in an existing API. As a result, we rely pretty heavily on proxy functionality provided with http-proxy-middleware.

Unfortunately, a recent update to json-server has broken application/json POST requests through our proxy because adding body-body parser as top-level middleware in #338 affects the request sent through the proxy.

After encountering the issue and evaluating how our application has grown and what it needs, I've realized that it probably no longer fits the intended use json-server very well. However, for the benefit of others that are using jsons-server as a module, you may want to bump the version number with this added feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions