优化csrf名称,防止nginx代理无法识别问题(IC5B9C)

This commit is contained in:
RuoYi
2025-05-12 11:47:26 +08:00
parent b03b9736f5
commit 2b8d00b756
7 changed files with 15 additions and 10 deletions

View File

@@ -97,7 +97,7 @@
data: { password: password },
beforeSend: function(xhr) {
var csrftoken = $('meta[name=csrf-token]').attr('content');
xhr.setRequestHeader("csrf_token", csrftoken);
xhr.setRequestHeader("X-CSRF-Token", csrftoken);
index = layer.load(2, {shade: false});
},
success: function(result) {