I migrated one of my express app to firebase functions. Everything works perfectly except for DELETE requests that have a form body. When I access my function directly on this url
https://us-central1-[appname].cloudfunctions.net/app/api/hidden
and send a delete request with a form body everything works. But when I try this url
which should behave the same way, I crash my app because body of the request is empty. For some reason I can't send a DELETE request with a body on the second url. Did anyone experience this issue?
My fireabse.json looks something like this
{
"hosting": {
"rewrites":[{
"source": "**",
"function": "app"
}]
//other rules
}
}