-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Unable to connect to backend. #22
Comments
Can't you disable the csrf filter for the elfinder routes?
|
yes i can't, how disable the csrf filter for the elfinder routes? |
I guess you can pass the csrf_tokn to the elfinder initializing script with cutomData option. $('#elfinder').elfinder({
costomData: {
_token: <?php echo csrf_token(); ?>
},
url : '<?= URL::action('Barryvdh\Elfinder\ElfinderController@showConnector') ?>'
}); |
thanks @ahmadazimi for u help. SOLVED. In tinymce4.php files. |
this is not Work for laravel 5.2 |
hi i found a problem when trying to upload a file, where the message of the problem is Unable to connect to the backend, and it turns out the problem is because since this function on my filters.php file
Route :: filter ('CSRF', function ()
{
if (Session :: getToken ()! = Input :: get ('csrf_token') && Session :: getToken ()! = Input :: get ('_token'))
{
Route::filter('csrf', function()
{
if (Session::getToken() != Input::get('csrf_token') && Session::getToken() != Input::get('_token'))
{
throw new Illuminate\Session\TokenMismatchException;
}
});
How do I deal with these issues?
The text was updated successfully, but these errors were encountered: