dimanche 3 janvier 2016

Browse server on different domain (ckeditor-laravel-elfinder)

The same problem was addressed here but it didn't work for me.I am using laravel-elfinder package to integrate the browsing capability to my Laravel 4 app with ckeditor. My project is running on http://project.com. I keep resources in different domain (say http://ift.tt/1RjywR1).

Whenever I press Browse Server button it browse files from http://ift.tt/1RjyvfH , I need to browse files from http://ift.tt/1RjywR1.

This is default browsing URL (as in the documentation)

  filebrowserBrowseUrl: '{{ url('/elfinder/ckeditor4')}}

And this is how I set my routes

Route::group(array('before' => 'auth'), function(){
   Route::get('elfinder', 'Barryvdh\Elfinder\ElfinderController@showIndex');
   Route::any('elfinder/connector', 'Barryvdh\Elfinder\ElfinderController@showConnector');

   Route::get('elfinder/ckeditor4', 'Barryvdh\Elfinder\ElfinderController@showCKeditor4');

});

It works fine if the files are inside http://project.com but I can't access the files located under http://ift.tt/1RjywR1. Both domains live in the same server.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire