mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 00:20:07 +00:00
Use custom csrf cookie name to avoid name conflict
This commit is contained in:
@@ -530,7 +530,7 @@ define([
|
||||
}
|
||||
if (!(/^http:.*/.test(settings.url) || /^https:.*/.test(settings.url))) {
|
||||
// Only send the token to relative URLs i.e. locally.
|
||||
xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
|
||||
xhr.setRequestHeader("X-CSRFToken", getCookie(app.config.csrfCookieName));
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user