********************** Enable CORS ********************** To enable CORS for your Tomcat instance, you can use our included file. This file is located under /scripts/cors.txt The contents should be added to the line just before in your /home/tomcat/apache-tomcat-{version}/conf/web.xml .. warning:: Be sure to create a backup of your web.xml file before making any changes. The file Contents are below .. code-block:: xml :linenos: CorsFilter org.apache.catalina.filters.CorsFilter cors.allowed.origins * cors.allowed.methods GET,POST,HEAD,OPTIONS,PUT CorsFilter /* You must restart Tomcat for the changes to register. .. note:: The above script is very permissive. You should refine your CORS filter to reflect usage.