Skip to content

Please document using csrf_exempt for read-only POST APIs #146

@camd

Description

@camd

I have a ReactJS application that is hosted on a separate domain from my Django app. But the library (Apollo) currently only makes requests with POST. Since I have no mutations in my Graphene implementations, it's pretty safe for me to use csrf_exempt for my GraphQL view.

Would you be able to add that to your documentation somewhere so that people know this is an option. Would you also be able to confirm that I'm correct in my deduction? :) If it's still possible to write to GraphQL without mutations, I'll need to look for a different solution.

Thanks!!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions