DEV Community

Khaled Abdelbar
Khaled Abdelbar

Posted on

CSRF Issue in Postman with JWT Authentication

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)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay