I'm passing the header 'Authorization' in my requests but it's not coming up in event.headers - anyone know any quick fixes for this?
My serverless-offline config:
custom:
serverless-offline:
port: 8080
corsAllowOrigin: '*'
corsAllowHeaders: 'accept,content-type,x-api-key,Authorization'
+1
I think it has to do with this line https://github.com/serverless/serverless/blob/master/lib/plugins/aws/package/compile/events/apiGateway/lib/method/integration.js#L29, switching it to $input.params().headers works
+1
Most helpful comment
+1