
Follow these steps to enable CORS:
Stop the Tomcat Service
Navigate to Configuration Folder
Your Drive:\AutomationEdge\tools\apache-tomcat\webapps\aeengine\WEB-INFModify the web.xml File
web.xml file in a text editor.CorsFilter.
<!-- Enable following CorsFilter if aeui and aeengine are going to get deployed on different web servers --><!-- <filter><filter-name>CorsFilter</filter-name><filter-class>org.apache.catalina.filters.CorsFilter</filter-class><init-param><param-name>cors.allowed.origins</param-name><param-value>*</param-value></init-param><init-param><param-name>cors.allowed.methods</param-name><param-value>GET,POST,PUT,DELETE</param-value></init-param><init-param><param-name>cors.allowed.headers</param-name><param-value>Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,X-session-token</param-value></init-param></filter><filter-mapping><filter-name>CorsFilter</filter-name><url-pattern>/*</url-pattern></filter-mapping> -->
Start the Tomcat Service

Follow these steps to enable CORS:
Stop the Tomcat Service
Navigate to Configuration Folder
Your Drive:\AutomationEdge\aehome\confModify the ae.properties File
ae.properties file in a text editor.
# Allow OPTIONS method for CORSspring.security.web.firewall.allowed-http-methods=GET,POST,PUT,DELETE,OPTIONS # Enable CORS endpoints.web.cors.enabled=true endpoints.web.cors.allowed-origins=* endpoints.web.cors.allowed-methods=GET,POST,PUT,DELETE endpoints.web.cors.allowed-headers=Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,X-session-token
Start the Tomcat Service
