I want to use manual testing of apishki, but I don’t know how to transfer post-requests from the page of browser display of data.

Now everything rests on csrf. Need to transfer the most csrf-token? If so, how?

Or maybe it is possible to disable the check on csrf?

Please tell me how best.

  • csrf-token can be passed as a POST request parameter. Here's an example of how you can get it: docs.djangoproject.com/en/2.0/ref/csrf/#ajax - Alexander Kurmazov
  • @ Alexander Kurmazov, and how to transfer it to the post? What to write? - Mr Fix
  • when I worked with DRF, I did a POST request via Ajax with this preset - Alexander Kurmazov
  • @Alexander Kurmazov, thank you, but I don’t see how to add a header to the request from the browser display page. How they assumed people would use something incomprehensible to me. - Mr Fix
  • one
    @Alexander Kurmazov, thanks for helping me figure it out, the middleware for the workflow was disabled :-) And I sinned on the DRF developers. - Mr Fix

0