mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-20 10:20:42 +00:00
Merge pull request #2317 from haiwen/6.3-csrf_cookie
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