django-rest-framework-docs
django-rest-framework-docs copied to clipboard
DRF Docs LiveAPI doesn't pass Django CSRF token
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