Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
feat(csrf): Adds a setting for the CSRF header name. #1958
This is useful for integrating with AngularJS.
AngularJS uses a default cookie and header name to magically just work. It would be nice to set the CSRF cookie and header name in my Django app and not have to worry about setting the CSRF values in my AngularJS code.
Details on the values here:
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
What about making
One could then easily subclass