I have an api end point that is working fine in POSTMAN but when I try to POST method from frontend axios it gives error
JSON
detail "Authentication credentials were not provided."
from fontend
const config = {
headers: {
"Content-type": "application/json",
Authorization : `JWT ${localStorage.getItem("access")}`
},
};
axios.post(
`...................................`,
config,
)
But in POSTMAN it works fine with these Authorization enter image description here and Headers enter image description here
but in Browser console it shows error with this request enter image description here and for response error enter image description here
I know I am adding unnecessary image links here but that's the best way in which I can show my problem.If you need any other details to debug this or If you have any idea why this might be happening?