Skip to content
This repository was archived by the owner on Jun 20, 2018. It is now read-only.

Not standart csrf cookie name #19

Description

@karech

If you change CSRF_COOKIE_NAME in project settings, then nexus admin ajax requests will fail with 403 error. Problem in nexus/media/lib/nexus.js:38

...
if (!safeMethod(settings.type) && sameOrigin(settings.url)) {
    xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
}
...

Fix: Pull request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions