Reputation: 245
I've installed Alfresco Community 7.3 with docker
, and I'm developing a frontend application with Angular.
It use a Tomcat webserver. When I try to execute a PUT or DELETE http call, server send back the following error: "status: 403, statusText: 'Forbidden".
The routine is the following (eg. for delete a document):
sAlfEliminaFile(ticket: string, idFile: string){
const headers = new HttpHeaders({
'Authorization': 'Basic ' + btoa(ticket),
});
return this.http.delete('/alfrescoapi/-default-/public/alfresco/versions/1/nodes/22f98143-eb5e-48f0-8c40-4534c1fe73d1', {headers : headers })
}
I'm using a proxy to avoid CORS problem, with following parameters:
{
"/alfrescoapi": {
"target": "http://localhost/alfresco",
"secure": false,
"pathRewrite": {
"^/alfrescoapi": "/api"
},
"changeOrigin": true
}
}
I've already tried to change the param "changeOrigin" to false but it does not work. Credentials are corrects, I've also tried with admin credentials, with the same result.
What I can do to solve? Thanks.
Upvotes: 0
Views: 165