cross domain call using REST Alfresco

2019-06-07 19:54发布

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条回答
疯言疯语
2楼-- · 2019-06-07 20:23

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

查看更多
登录 后发表回答