-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Milestone
Description
From @vhristov5555 on February 6, 2019 11:27
- Create project
- Add code for post request
httpModule.request({
url: "https://httpbin.org/post",
method: "POST",
headers: { "Content-Type": "application/json" },
content: JSON.stringify({
username: vm.get("user"),
password: vm.get("pass")
})
}).then((response) => {
const result = response.content.toJSON();
}, (e) => {
});
- Run
tns debug ios - Open the URL in Chrome
- Navigate to Network tab
- Click on the post request
Actual: Request Payload will be missing in header section for the request.
Expected: The Request Payload to be shown{"user":"user name","password":"password","token":"123718idjskmz"}. This is working in android.
Copied from original issue: NativeScript/ios-jsc#1072
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.