django-rest-framework-docs icon indicating copy to clipboard operation
django-rest-framework-docs copied to clipboard

DRF Docs LiveAPI doesn't pass Django CSRF token

Open jroblak opened this issue 9 years ago • 0 comments

In developing with DRF Docs, I gave a couple of internal business users the Live API links in order to do manual testing. In their testing POST, PUT, and PATCH methods, they were receiving an error message due to the missing CSRF token.

Is there a reason DRF Docs doesn't automatically pass this data if it exists?

ala a potential solution here: https://github.com/jroblak/django-rest-framework-docs/blob/master/rest_framework_docs/static/rest_framework_docs/js/components/liveapi.js

jroblak avatar Oct 21 '16 20:10 jroblak