<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error 403 with PUT or DELETE http calls in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/error-403-with-put-or-delete-http-calls/m-p/127375#M34626</link>
    <description>&lt;P&gt;I solved by installing Alfresco on port 8080 instead of 80.&lt;/P&gt;&lt;P&gt;I don't know if NGIX reverse proxy has a specific rule for port 80.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 13:53:02 GMT</pubDate>
    <dc:creator>FabioVaprio</dc:creator>
    <dc:date>2023-09-21T13:53:02Z</dc:date>
    <item>
      <title>Error 403 with PUT or DELETE http calls</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-403-with-put-or-delete-http-calls/m-p/127370#M34621</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I've installed Alfresco Community 7.3 with docker, and I'm developing a frontend application with Angular.&lt;/P&gt;&lt;P&gt;It use a Tomcat webserver. When I try to execute a PUT or DELETE http call, server send back the following error: &lt;STRONG&gt;"status: 403, statusText: 'Forbidden"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The routine is the following (eg. for delete a document):&lt;/P&gt;&lt;PRE&gt;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 })
  }&lt;/PRE&gt;&lt;P&gt;I'm using a proxy to avoid CORS problem, with following parameters:&lt;/P&gt;&lt;PRE&gt;{
    "/alfrescoapi": {
      "target": "http://localhost/alfresco",
      "secure": false,
      "pathRewrite": {
        "^/alfrescoapi": "/api"
      },
      "changeOrigin": true
    }
} &lt;/PRE&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;What I can do to solve? Thanks.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Aug 2023 14:21:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-403-with-put-or-delete-http-calls/m-p/127370#M34621</guid>
      <dc:creator>FabioVaprio</dc:creator>
      <dc:date>2023-08-25T14:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error 403 with PUT or DELETE http calls</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-403-with-put-or-delete-http-calls/m-p/127371#M34622</link>
      <description>&lt;P&gt;I guess the problem is that service doesn't exist.&lt;/P&gt;
&lt;P&gt;I created a workaround in this project:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/keensoft/alfresco-remove-version" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/keensoft/alfresco-remove-version&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It's required to create a new Web Script (legacy REST API) in Repository to handle this DELETE invocations:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/keensoft/alfresco-remove-version/blob/master/remove-version-repo/src/main/resources/alfresco/extension/templates/webscripts/es/keensoft/remove-version.post.desc.xml" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/keensoft/alfresco-remove-version/blob/master/remove-version-repo/src/main/resources/alfresco/extension/templates/webscripts/es/keensoft/remove-version.post.desc.xml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 14:39:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-403-with-put-or-delete-http-calls/m-p/127371#M34622</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2023-08-25T14:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error 403 with PUT or DELETE http calls</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-403-with-put-or-delete-http-calls/m-p/127372#M34623</link>
      <description>&lt;P&gt;I addition... review your URL, since it looks incorrect.&lt;/P&gt;
&lt;P&gt;This is the right one:&lt;/P&gt;
&lt;PRE&gt;'/alfresco/api/-default-/public/alfresco/versions/1/nodes/22f98143-eb5e-48f0-8c40-4534c1fe73d1'&lt;/PRE&gt;
&lt;P&gt;With an additional slash between "alfresco" and "api"&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 14:40:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-403-with-put-or-delete-http-calls/m-p/127372#M34623</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2023-08-25T14:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error 403 with PUT or DELETE http calls</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-403-with-put-or-delete-http-calls/m-p/127373#M34624</link>
      <description>&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;the URL it's right, because I create an alias on proxy conf file&lt;/P&gt;&lt;PRE&gt;"pathRewrite": {
        "^/alfrescoapi": "/api"
      },&lt;/PRE&gt;&lt;P&gt;So, "alfrescoapi" is changed in "api". All'other API I developed work well.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 15:00:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-403-with-put-or-delete-http-calls/m-p/127373#M34624</guid>
      <dc:creator>FabioVaprio</dc:creator>
      <dc:date>2023-08-25T15:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error 403 with PUT or DELETE http calls</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-403-with-put-or-delete-http-calls/m-p/127374#M34625</link>
      <description>&lt;P&gt;Sorry, but I didn't understand your answer. May you explain me better?&lt;/P&gt;&lt;P&gt;This API is described in "&lt;A href="http://localhost/api-explorer/?urls.primaryName=Core%20API#/nodes/deleteNode" target="_self" rel="nofollow noopener noreferrer"&gt;Alfresco Content Services REST API&lt;/A&gt;" and the problem is the same for PUT method.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 15:03:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-403-with-put-or-delete-http-calls/m-p/127374#M34625</guid>
      <dc:creator>FabioVaprio</dc:creator>
      <dc:date>2023-08-25T15:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error 403 with PUT or DELETE http calls</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/error-403-with-put-or-delete-http-calls/m-p/127375#M34626</link>
      <description>&lt;P&gt;I solved by installing Alfresco on port 8080 instead of 80.&lt;/P&gt;&lt;P&gt;I don't know if NGIX reverse proxy has a specific rule for port 80.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 13:53:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/error-403-with-put-or-delete-http-calls/m-p/127375#M34626</guid>
      <dc:creator>FabioVaprio</dc:creator>
      <dc:date>2023-09-21T13:53:02Z</dc:date>
    </item>
  </channel>
</rss>

