feat(proxy-backend): support limiting the proxied HTTP methods

This commit is contained in:
Dominik Henneke
2020-09-11 13:05:53 +02:00
parent f0b86ece3a
commit 7553827223
4 changed files with 18 additions and 4 deletions
+4 -1
View File
@@ -52,7 +52,10 @@ configuration will lead to the proxy acting on backend requests to
The value inside each route is either a simple URL string, or an object on the
format accepted by
[http-proxy-middleware](https://www.npmjs.com/package/http-proxy-middleware).
[http-proxy-middleware](https://www.npmjs.com/package/http-proxy-middleware). It
is also possible to limit the forwarded HTTP methods with the configuration
`allowedMethods`, for example `allowedMethods: ['GET']` to enforce read-only
access.
If the value is a string, it is assumed to correspond to: