I am building a app using Angular and Django
by default, Django uses X-CSRFToken
as the csrf header and csrftoken
as the token name.
I Want to rename the header name to something X-SOMENAME
and token as sometokenName
,
I know with Angular we can change the default names with$http.defaults
Is it possible to change the token name on Django so that the generated token has sometokenName
and the header Django looks to X-SOMENAME
?
Thank you.