Created
November 5, 2019 23:43
-
-
Save furlanf/f1228397c860f9071a542e2b6154a1ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const middy = require('middy'); | |
const { httpSecurityHeaders, httpErrorHandler } = require('middy/middlewares'); | |
module.exports = (handler) => { | |
return middy(handler).use(httpSecurityHeaders()) | |
.use(httpErrorHandler()); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment