In some cases options?.method is undefined for POST requests, so the request is being proxied, but the proxy can't handle POST data, so the data is lost.
Instead of checking options?.method, check the request's method, which seems to always be defined.
In some cases
options?.method
is undefined forPOST
requests, so the request is being proxied, but the proxy can't handle POST data, so the data is lost.Instead of checking
options?.method
, check the request'smethod
, which seems to always be defined.closes https://github.com/ionic-team/capacitor/issues/7391