We have already found the problem,The servlet returns a 403 error, in the servlet we included the custom header..The problem was in the configuration of the virutal host, it had this valueDispatcherPassError 1The 403 error is returned by the dispatcher and not by AEM publish.We have set:DispatcherPa...