I’m trying to hit my lambda function with DELETE and PUT - they seem to be blocked. POST and GET get in properly. I added a
console.log('method', event.httpMethod); to the top of my
handler and I can see the GETs, but none of the DELETEs or PUTs even hit that line.
I tried adding a
'Access-Control-Allow-Methods': '*' to the headers (and even added DELETE specifically) - to no avail?
Am I doing something wrong? Have I missed a setting somewhere? Or does Netlify block DELETE and PUT on the server level?