I created simple API in Django and I need to fetch it with JavaScript, I get following error: Forbidden (CSRF token missing.): URL(placeholder instead of real url)
fetch(`/Post/${content[i].id}`, {
method: "POST",
}).then((data) => {
console.log(data);
})
How can I include token in API call?