Hello!
I think I managed to go through the CORS problems I've been having for a quite some time.
I'm trying to use Angular's HttpClient. I've builed simple xml file using xmlBuilder in the typescript - and I would like to post it to the desired subfolder using Alfresco API. I've been trying to use that kind of snippet to post it but I'm getting error 400 with a bad request as a status - I think I'm missing certain headers or something like that in this http post but I'm not sure what exactly and how to do it to be able to post xml file. Moreover - I am not sure how to set a certain folder as a target folder for the newly posted file.
Are you using ADF?
Yes, I am using ADF but I've managed to solve the problem with this: https://community.alfresco.com/community/ecm/blog/2016/10/24/v1-rest-api-part-3-creating-nodes - long story short I've been missing an actual body defining name or path, so the snippet looks more or less like that ('node.name' is folder name, where an actual document is going to be put):
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.