Skip to content

Form Submission after Errors throws CSRF Forbidden #40

Description

@tulpn

I have followed the instructions for this module, and the CSRF tokens seem to work. I have a custom SessionEngine and I can see that the csrf_token is correctly bound to a session.

However, when I submit a form purposely with false data and the form returns with an error, the user is not able to correct their input and submit the form again. On second submit the user receives a CSRF Forbidden message.

I am using django's render() method in my views. So it should take care of all the CSRF for the request/context. Is there anything else that I need to take care of?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions