\ckfinder\config.php
$config['csrfProtection'] = true;
修改為
$config['csrfProtection'] = false;
或者
var finder;
CKFinder.start({
onInit: function(instance) {
// Save finder instance to use it later
finder = instance;
}
});
// Later you can obtain the token the following way
console.log(finder.request('csrf:getToken'));
|