Deactivate all Cross-Origin-Requests - Intergraph Smart Materials - 10.4 - Installation & Upgrade - Hexagon

Intergraph Smart Materials Web Installation (10.4)

Language
English
Product
Intergraph Smart Materials
Subproduct
Web
Search by Category
Installation & Upgrade
Smart Materials/Smart Reference Data Version
10.4

To define a filter that prohibits all cross-origin requests, do the following:

  1. Navigate to: <tomcat-directory>\conf\web.xml

  2. In web.xml, search for 'Built In Filter Mappings'.

  3. In the line above, add this:

    <filter>

      <filter-name>CorsFilter</filter-name>

      <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>

    </filter>

                   

    <filter-mapping>

      <filter-name>CorsFilter</filter-name>

      <url-pattern>/*</url-pattern>

    </filter-mapping>