CKFinder “Edit” features does not work when working on different domains

為{幸葍}努か 提交于 2019-12-07 15:24:38

问题


We are evaluating CKFinder, at the moment we have this situation:

  • app.domain.com hosts our JS application included ckfinder.js
  • api.domain.com hosts the connector.php

Please note they are on different domains.

We are able to view files and folders with no problems.

The issue is related the EDIT feature. When user select an Image and click "Edit" Button, CKFinder goes in editing mode but with receive an error and the image cannot be edited:

response (status cancelled)
URL:about:/blank?camanProxyUrl=https%3A%2F%2Fapp.domain.com%2Flib%2Fckfinder%2Fcore%2Fconnector%2Fphp%2Fconnector.php%3Fcommand%3DThumbnail%26lang%3Den%26type%3DImages%26currentFolder%3D%252F%26hash%3D7c47bbd7d0c05357%26fileName%3Dfile-aaa-Image-Sample-6.jpg%26date%3D20160208110210%26fileSize%3D206

It looks like an issue with some php proxy CKFinder is using.

Maybe related to this component: https://github.com/ckfinder/CamanJS/tree/master/docs

We would need to run the EDIT feature but keeping the same domain organization as we have.

Any solution is very welcome thanks!


回答1:


In general, cross-domain setups are not supported in CKFinder at the moment. As it is, ckfinder.js and connector.php should be located in the same domain. Do note it's not just a matter of hacking the Edit feature, other areas of the application including some security-related ones will not work either.



来源:https://stackoverflow.com/questions/35288396/ckfinder-edit-features-does-not-work-when-working-on-different-domains

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!