Good morning,
Thank you very much for your answers, tell them that reading a bit on the CA site, managed to find the solution. Below I tell him what I did
Copy and paste the configuration under this statement as
<!-- Cross-origin support for Attachments Servlet -->
<filter-mapping>
<filter-name>CORS</filter-name>
<servlet-name>UploadServlet</servlet-name>
</filter-mapping>
It looks like
<!-- Add filter here -->
<!-- Cross-origin support for Attachments Servlet -->
<filter>
<filter-name>CORS</filter-name>
<filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
<init-param>
<param-name>cors.supportedMethods</param-name>
<param-value>POST, GET, OPTIONS</param-value>
</init-param>
<init-param>
<param-name>cors.allowOrigin</param-name>
<param-value>*</param-value>
</init-param>
</filter>
<!-- Add filter-mapping here -->
<!-- Cross-origin support for Attachments Servlet -->
<filter-mapping>
<filter-name>CORS</filter-name>
<servlet-name>UploadServlet</servlet-name>
</filter-mapping>
Then save the web.xml file and restart tomcat.