3

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?

Akash g krishnan
  • 469
  • 5
  • 16

1 Answers1

0

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?

Andrey Gritsay
  • 979
  • 1
  • 10
  • 18
  • 2
    Yes, I had checked the answer. As mentioned. I do not want to use CSRF exemption and want to protect my views. so is it possible to fetch the csrf and then add it to the request and make a post request. Updated the tags – Akash g krishnan Jan 13 '21 at 18:27