Can we use plugins like Helmet.js and body-parser to secure a serverless function? If we can't how can we implement those features to our serverless functions?
In AWS, you can setup a distributed architecture using other services to filter requests before hitting your serverless functions. You can use AWS WAF to protect your API Gateway Endpoints (Currently you have to proxy your API through CloudFront).
Check the following diagram and refer the AWS documentation for more details.
Diagram Credits: AWS answers for AWS WAF Security Automations
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With