tudordumitriu opened a new issue #1074:
URL: https://github.com/apache/cordova-ios/issues/1074
# Bug Report
We have fully set up the cordova-ios 6.2.0 + installed web-proxy plugin +
converting all the urls to be routed through the webproxy.
Unfortunately the very first call fails and after debugging it I have
noticed that the urlSchemeTask.request.HTTPBody is nil even though from
Javascript the body is correctly set up, in plugin code there is no body ( even
though in Javascript the body is a json "{"name":"t","password":"1"}") and the
headers are correctly set and transmitted.
The call is correctly routed to our server because the response headers
contain the server details but we are getting back a 400 Bad Request.
If we amend the code of the plugin and force the HTTPBody the server
response is successfully returned
Few more (maybe important) details:
1. The call is a POST to our DB server which is CouchDB (done automatically
by PouchDB client DB)
2. The call is done via XMLHttpRequest
2. The call is done on HTTPS
3. All the headers are correctly set up ("Accept":"application/json",
"content-type":"application/json")
This issues was originally reported in
https://github.com/GEDYSIntraWare/cordova-plugin-webview-proxy/issues/4 but
after debugging a little more the problem seems to be in CDVURLSchemeHandler
## Problem
Third party plugin cordova-plugin-webview-proxy is not receiving the
HttpBody and is not passing it forward.
### Environment, Platform, Device
[email protected]
iPhone 12 Pro
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
Cordova: Cordova 9, Cordova iOS 6.2.0
Plugins: https://github.com/GEDYSIntraWare/cordova-plugin-webview-proxy
OS: iOS 14.3 , XCode 12.3
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [ x] I searched for existing GitHub issues
- [x ] I updated all Cordova tooling to most recent version
- [ x] I included all the necessary information above
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]