diff --git a/pom.xml b/pom.xml index 64b0641..e25e778 100644 --- a/pom.xml +++ b/pom.xml @@ -230,6 +230,14 @@ 9.1-901.jdbc3 + + + org.apache.tomcat + tomcat-catalina + LATEST + + + diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index fb104ea..b9df1da 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -5,6 +5,28 @@ http://xmlns.jcp.org/xml/ns/javaee " version="3.1"> + + CorsFilter + org.apache.catalina.filters.CorsFilter + + cors.allowed.origins + * + + + cors.allowed.headers + Content-Type,X-Requested-With,accept,authorization,Origin,Access-Control-Request-Method,Access-Control-Request-Headers + + + cors.allowed.methods + GET, POST, PUT, DELETE, OPTIONS, HEAD + + + + + CorsFilter + /* + + log4jConfigLocation /WEB-INF/log4j.properties