Open DKWBL opened 5 years ago
Got the same error. I try CORS + Content-Security-Policy (CSP) but cannot resolve the different domains case...
Small step forward:
The editor is on domain foo.localhost and elfinder on bar.localhost.
To get a try I've added a set to window.document.domain
in getFileCallback
function before call of window.opener.CKEDITOR.tools.callFunction()
:
getFileCallback : function(file)
{
window.document.domain = 'foo.localhost' ;
window.opener.CKEDITOR.tools.callFunction(funcNum, file.url);
window.close();
}
and the error is now :
Error in
getFileCallback
. Failed to set the 'domain' property on 'Document': 'foo.localhost' is not a suffix of 'bar.localhost'.
my frontend is at 8080 port and serverside at 8000
uploading works correct, but when i try to insert an image to ckeditor - i get
Error in
getFileCallback
. Blocked a frame with origin "http://localhost:8000" from accessing a cross-origin frame.maybe it's not the issue of this package? but appreciate any support.
i have your cors package, with * settings