I use Django Rest framework session authentication,after user logged in I can do successful POST request (/api/post/1/like/) using browsable API.
Why can't I post using axios ? (user instance is must for Django server to save the above API )
I hope POST signal may not know logged in user even though I am loggedin as admin user
AXIOS FUNCTION
const likebutton = (id)=>{
axios.post(`/api/post/${id}/like/`)
}
ERROR
Error: Request failed with status code 403
at createError (createError.js:16)
at settle (settle.js:17)
at XMLHttpRequest.handleLoad (xhr.js:61)