Thanks for responding, Chris.
-
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.
-
No there isn’t
-
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?