[PORTAL-7] Rebase
[portal.git] / ecomp-portal-BE-common / src / main / webapp / WEB-INF / web.xml
diff --git a/ecomp-portal-BE-common/src/main/webapp/WEB-INF/web.xml b/ecomp-portal-BE-common/src/main/webapp/WEB-INF/web.xml
new file mode 100644 (file)
index 0000000..9c89f94
--- /dev/null
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+  ================================================================================\r
+  ECOMP Portal\r
+  ================================================================================\r
+  Copyright (C) 2017 AT&T Intellectual Property\r
+  ================================================================================\r
+  Licensed under the Apache License, Version 2.0 (the "License");\r
+  you may not use this file except in compliance with the License.\r
+  You may obtain a copy of the License at\r
+  \r
+       http://www.apache.org/licenses/LICENSE-2.0\r
+  \r
+  Unless required by applicable law or agreed to in writing, software\r
+  distributed under the License is distributed on an "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+  See the License for the specific language governing permissions and\r
+  limitations under the License.\r
+  ================================================================================\r
+  -->\r
+\r
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">\r
+       <display-name>fusion</display-name>\r
+       \r
+       <!--  \r
+       <context-param>\r
+       <param-name>log4jConfigLocation</param-name>\r
+       <param-value>/WEB-INF/conf/log4j.properties</param-value>\r
+       </context-param>\r
+\r
+       <listener>\r
+       <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>\r
+       </listener>     \r
+        -->\r
+        \r
+       <!-- The Portal app can function on a HA cluster -->\r
+       <distributable/>\r
+\r
+       <filter>\r
+       <filter-name>CorsFilter</filter-name>\r
+               <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>\r
+           <init-param>\r
+               <param-name>cors.allowed.methods</param-name>\r
+               <param-value>GET,POST,HEAD,OPTIONS,PUT,DELETE</param-value>\r
+           </init-param>\r
+           <init-param>\r
+               <param-name>cors.allowed.headers</param-name>\r
+               <param-value>EPService,JSESSIONID,X-ECOMP-RequestID,X-Widgets-Type,Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers</param-value>\r
+           </init-param>       \r
+       </filter>\r
+    \r
+    <filter-mapping>\r
+      <filter-name>CorsFilter</filter-name>\r
+      <url-pattern>/*</url-pattern>\r
+    </filter-mapping>\r
+</web-app>\r