Skip to content

Joining alternative in admin does not work when CSRF_COOKIE_HTTPONLY=True #169

Description

@bvvstab

The code in csrf.js sets a HTTP header from the CSRF cookie, but it is not allowed to ready it. The HTTP header is thus set to "null", causing the request to fail.

I suggest turning the functionality into proper links, or reading the token from DOM - e.g.

$("[name='csrfmiddlewaretoken']").val();

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions