This package contains helpers for the backend-for-frontend (BFF) servers of
micro-frontends.
Installation
npm install @entur-partner/bff
# or if you are using Yarn:
yarn add @entur-partner/bff
Proxy defaults
forwardingProxy and proxyConfig use these defaults:
The request body can be at most 1 MB. Set the environment variable
UPLOAD_LIMIT_MB to allow larger bodies, for example UPLOAD_LIMIT_MB=20.
Larger requests get the response 413 Payload Too Large.
The Cookie header is not sent to the API. If an API needs a cookie, add it
in your proxyReqOptDecorator. Your decorator runs after the cookie is
removed.