Skip to content

Name of CSRF cookie is hard-coded. #729

Open
@ckm2k1

Description

@ckm2k1

Hey folks,

I've run into a problem with CSRF while using Dash with Django. The gist of it is that the route handler in our setup used for processing the _dash-update-component call requires CSRF (not something we can turn off). This is all fine, however, api.js in dash-renderer
hardcodes the name of the cookie to read the token from

'X-CSRFToken': cookie.parse(document.cookie)._csrf_token

This means that we have to either change our cookie names across the project, or simply not use dash. I'd rather use it cause it's a great product, but I can't change our cookie name across the board.

Would it be possible to make this value configurable?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclecscustomer success

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions