How to make post request with CSRF token from flutter to django. Post Request from Flutter App to Django backend gives CSRF error. How to fix this

Viewed 560

I have a flutter app for the frontend and Django for the backend. I wanna make a post request from the flutter app to the Django server. I checked the documentation and found CSRF exempt which is not something I want to do can someone tell me how I can make a post request from a Flutter app?

1 Answers

It's not related to Flutter, only to Django. Also you can try your requests in Postman before using with Flutter

Have you checked out this question Django Rest Framework remove csrf?

Related