Skip to content

DRF Docs LiveAPI doesn't pass Django CSRF token #142

@jroblak

Description

@jroblak

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions