Hi, i use post method (angular) but it seems not working:
var request = $http({
method: “post”,
url: ‘/api/user/generate_auth_cookie/’,
data: {
username: myusername,
password: mypwd
},
headers: { ‘Content-Type’: ‘application/x-www-form-urlencoded’ }
});
It responds with: You must include a ‘username’ var in your request.
Could you help me?
Thanks in advance
Thank you Ali.
Now i have cookie and cookie name and i save it.
How can I call it for others API if name change for every user?
Thanks in advance