Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/webapp/resource/js/backend/zblog.admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ zblog.getDomainLink=function(path){
zblog.newCsrf=function(){
var csrfValue = (Math.random()+"").substring(2);
/* 此处token值可以放在cookie中 */
$.cookie("x-csrf-token", csrfValue, {path:"/backend"});
$.cookie("x-csrf-token", csrfValue, {path:location.pathname});
return csrfValue;
}

Expand Down