New in the forums here and relatively new to Serverless framework here so bear with me. I have a simple end-point that I deployed using the httpApi. I want to set up CORS for it and according to the reference here, it should be possible:
However, I get this in for my config:
Serverless: Configuration warning at 'functions.requestRegistration.events[1].httpApi': unrecognized property 'cors'
This is more than mildly inconvenient - my serverless.yml looks like this for the relevant part:
requestRegistration:
handler: UserApi/requestRegistration.handler
#reservedConcurrency: ${self:custom.lambdaConcurrency}
events:
- http:
path: register
method: post
cors: true
- httpApi:
cors: true
method: POST
path: /register
And these are the versions I’m rocking:
Framework Core: 1.80.0
Plugin: 3.8.1
SDK: 2.3.1
Components: 2.34.9
In addition, setting the “payload: ‘2.0’” for them also gives me an unrecognized property error. What am I missing here?