-1

I would like to retrieve the CRSF token so I can do a POST externally from the website e.g via POSTMAN, or other external applications. I have exposed an API endpoint for user to upload files which they can do directly inside of doing it from website.

However CRSF token is needed. I wish to extract it (user will login via external client, therefore I wish to be able to pass in CRSF token so they can include it and submit the file, of course it won't be visisble, the program will set it manually when they click upload on the external program)

bawagoc25
  • 33
  • 3

1 Answers1

1

If you want to access Django with Postman, make API end point(may be using Django Rest Framework).

Then in JS front end libraries you can add CSRF token explicitly https://docs.djangoproject.com/en/3.0/ref/csrf/

Anoop K George
  • 1,605
  • 12
  • 40