[iOS] Content/body not sent using POST
sivo1981 opened this issue · 2 comments
sivo1981 commented
Bellow code is working fine on Android, but on iOS content / body is not sent to the server.
const response = await Https.request({
useLegacy: true,
method: 'POST',
url: `${baseUrl}${url}`,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
content: stringify(body),
})
Tried with useLegacy=false
and useLegacy=false
and there is no difference.
Using latest version of NS7 and HTTPS.
Any ideas?
farfromrefug commented
@sivo1981 try to use body:body
instead of content: stringify(body)
. This is what i do
sivo1981 commented
@farfromrefug Thanks for the hint. Meanwhile i have found out that maually setting cookie to header (aka. remember-me) also doesnt work as i expected, so i switched to axios.