This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 136
POST Data is not passing. #67
Comments
Check that you are adding the "add(Http.class);" in your android MainActivity. |
I did. |
Try remove params, and move the size property to data. |
Yeah I did but nothing goes inside DATA. I moved to AXIOS closing the issue. |
How did you solve the cors error in AXIOS? |
This seems to be an old issue but I have the exact same problem. For some reason, the post parameters are never passed. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Desktop (please complete the following information):
Trying to use in Ionic Vue.
Http.request({
method: 'POST',
url: ApiHost + '/api/v1/seller/login',
data: {phone : this.phone, password: this.password},
headers: {
'X-Fake-Header': 'Max was here'
},
params: {
size: 'XL'
}
}).then((res)=>{
if(res.status == 200){
Storage.set({ key: 'token', value: res.data.token }).then((res)=>{
this.route.push('/register/step/2');
});
}else{
this.logging = false;
}
});
The text was updated successfully, but these errors were encountered: