cross domain call using REST Alfresco

最后都变了- 提交于 2019-12-08 07:10:56

问题


I am using the REST API to upload a file. http://fiddle.jshell.net/876fzzd5/5/ is the pastebin.

I am using http://malsup.com/jquery/form/#file-upload form plugin to upload cross domain.

IE debug tools shows that the correct response is received from the server. However the success callback is always called even if the file upload fails. If I don't use a cross domain Ajax call then the correct callback methods (success/error) are called.

Could some one let me know what might be the issue?


回答1:


Is this a CORS filter problem? If so, my installation of alfresco had the CORS filter commented out in the web.xml file. All I had to do was uncomment the filter. Also here is a post that shows you how to put the CORS filter in if it is not already there: http://www.slideshare.net/jottley/cors-enable-alfresco-for-cors



来源:https://stackoverflow.com/questions/27487122/cross-domain-call-using-rest-alfresco

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