Firt of all, sorry for my english...
I'm trying to setup the CKFinder to run at a different host from my CKEditor and i dont see why this dosent work. I need to do this cause a have a domain to handle my image files and another domain where my CMS system is placed. In the CMS domain is running my CKEditor with the following config (Assume that IMAGE_URL is my images domain):
The above configuration if pointing to the same domain where the CKEditor is, runs perfectly. But to another domain it is loading the initial screen just with the title 'Folders', without load any folders or files. The config of the CKFinder is the same in both hosts.
Using the CKEditor and the CKFinder in the same host is not a option for me cause my CMS system is generic and attends multiple web sites, each one with your own images folder. If someone passed throw this, please give me some help.
I'm trying to setup the CKFinder to run at a different host from my CKEditor and i dont see why this dosent work. I need to do this cause a have a domain to handle my image files and another domain where my CMS system is placed. In the CMS domain is running my CKEditor with the following config (Assume that IMAGE_URL is my images domain):
CKEDITOR.replace( 'campotexto', { filebrowserBrowseUrl : '".IMAGE_URL."/ckfinder/ckfinder.html', filebrowserImageBrowseUrl : '".IMAGE_URL."/ckfinder/ckfinder.html?Type=Images', filebrowserUploadUrl : '".IMAGE_URL."/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files', filebrowserImageUploadUrl : '".IMAGE_URL."/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images' });
The above configuration if pointing to the same domain where the CKEditor is, runs perfectly. But to another domain it is loading the initial screen just with the title 'Folders', without load any folders or files. The config of the CKFinder is the same in both hosts.
Using the CKEditor and the CKFinder in the same host is not a option for me cause my CMS system is generic and attends multiple web sites, each one with your own images folder. If someone passed throw this, please give me some help.
Re: CKFinder in a different host from the CKEditor
Re: CKFinder in a different host from the CKEditor
Re: CKFinder in a different host from the CKEditor
Re: CKFinder in a different host from the CKEditor
Re: CKFinder in a different host from the CKEditor
CKFinder is hosted in one place, the caller of the CKFinder is in another host. Who calls domain/ckfinder/ckfinder.html is in another host. The XSS problem should occur if the ckfinder.html was in a different place than the php files. So the ajax calls would crossing over two domains, that is not what is happening.
Re: CKFinder in a different host from the CKEditor
And that's called Cross-site scripting.
Test this:
save this file as launch.html in the CKEditor host
And this code as child.html
You can test that if both files are in the same server it works correctly, but if you move the child to another domain and try to launch that from the parent you can't call the functions of the other window.
Re: CKFinder in a different host from the CKEditor
Now I see, thanks by the example.