I created a script in Postman to navigate API endpoints using JWT authentication, and everything was working fine. However, after some time, I encountered the following error:
json
Copy
Edit
{
"detail": "CSRF Failed: CSRF token missing."
}
Since I'm using JWT for authentication, CSRF protection shouldn't be required. How can I properly configure Django and Postman to avoid this issue while keeping my API secure?
Top comments (0)