Can't call lambda function with DELETE or PUT methods

Thanks for responding, Chris.

  1. Whne I try from the browser (React code) - I get nothing. The Response tab in Network view shows “Failed to load response data”, and therefore I can’t see response headers as well.

  2. No there isn’t

  3. This is where it gets bizarre - I just tried to curl a DELETE request (pasting in the Authorization header required) and it worked! That means something in my client code is not ok? But the other 2 operations (POST, GET) work well, so it’s not a CORS issue.

I use fetch('url?id=' + id, {method: 'DELETE', headers: {Authorization: Bearer <jwt comes here>}} to trigger the delete op. Like I’ve mentioned, it works with netlify-lambda locally, and only fails on the prod site.

If needed, I can share my curl command, but since it works, it’s not relevant, I guess.

Is there some header that I’m missing? Where should I look next?