serverless-api-gateway-integration-headers
v1.0.0
Published
This plugin give you ability manipulate integration and request header in serverless cloud formation json.
Downloads
4
Maintainers
Readme
serverless-api-gateway-integration-headers
This plugin give you ability manipulate integration and request header in serverless cloud formation json.
Command:
- replaceHeaders
- deleteHeaders
Install
npm i serverless-api-gateway-integration-headersInitialize
plugins:
- serverless-api-gateway-integration-headersHow to use
- Replace Headers
serverless replaceHeaders --headers '{"integration.request.header.x-type" : "context.authorizer.x-type", "integration.request.header.x-userid" : "context.authorizer.x-userid"}'- Delete Headers
serverless deleteHeaders --headers 'method.request.header.x-type,method.request.header.x-userid'