I’m following the documentation in order to set response headers. I’m doing so because CORS is killing me and my spirit.
Anyways, the docs (https://www.serverless.com/framework/docs/providers/aws/events/apigateway/#responses) says I can do it like this:
events: - http: method: get path: whatever response: headers: Content-Type: "'text/html'"
However, it seems like the docs aren’t up to date because serverless is complaining when deploying,
Serverless: Configuration warning at 'functions.login.events.httpApi': unrecognized property 'response'
How do you set response headers in the newest version?