diff --git a/hapi-fhir-cli/hapi-fhir-cli-jpaserver/pom.xml b/hapi-fhir-cli/hapi-fhir-cli-jpaserver/pom.xml index 31d57fafb14..d37c8a1d817 100644 --- a/hapi-fhir-cli/hapi-fhir-cli-jpaserver/pom.xml +++ b/hapi-fhir-cli/hapi-fhir-cli-jpaserver/pom.xml @@ -83,16 +83,6 @@ - - org.ebaysf.web - cors-filter - - - servlet-api - javax.servlet - - - @@ -158,6 +148,10 @@ phloc-schematron + + org.apache.tomcat + tomcat-catalina + diff --git a/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/webapp/WEB-INF/web.xml b/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/webapp/WEB-INF/web.xml index a77904866c6..dd56fbedd0f 100644 --- a/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/webapp/WEB-INF/web.xml +++ b/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/webapp/WEB-INF/web.xml @@ -66,7 +66,7 @@ CORS Filter - org.ebaysf.web.cors.CORSFilter + org.apache.catalina.filters.CorsFilter A comma separated list of allowed origins. Note: An '*' cannot be used for an allowed origin when using credentials. cors.allowed.origins diff --git a/hapi-fhir-jpaserver-example/pom.xml b/hapi-fhir-jpaserver-example/pom.xml index b770783e3dc..39d509f53a1 100644 --- a/hapi-fhir-jpaserver-example/pom.xml +++ b/hapi-fhir-jpaserver-example/pom.xml @@ -93,18 +93,6 @@ thymeleaf - - - org.ebaysf.web - cors-filter - - - servlet-api - javax.servlet - - - - org.springframework @@ -163,6 +151,17 @@ phloc-schematron + + + org.apache.tomcat + tomcat-catalina + + diff --git a/hapi-fhir-jpaserver-example/src/main/webapp/WEB-INF/web.xml b/hapi-fhir-jpaserver-example/src/main/webapp/WEB-INF/web.xml index c81a6f602d0..76e37b9e959 100644 --- a/hapi-fhir-jpaserver-example/src/main/webapp/WEB-INF/web.xml +++ b/hapi-fhir-jpaserver-example/src/main/webapp/WEB-INF/web.xml @@ -57,12 +57,10 @@ / - - CORS Filter - org.ebaysf.web.cors.CORSFilter + org.apache.catalina.filters.CorsFilter A comma separated list of allowed origins. Note: An '*' cannot be used for an allowed origin when using credentials. cors.allowed.origins diff --git a/hapi-fhir-jpaserver-uhnfhirtest/pom.xml b/hapi-fhir-jpaserver-uhnfhirtest/pom.xml index 8cd98261ee8..a4fe817a222 100644 --- a/hapi-fhir-jpaserver-uhnfhirtest/pom.xml +++ b/hapi-fhir-jpaserver-uhnfhirtest/pom.xml @@ -159,14 +159,15 @@ commons-dbcp2 - - - org.ebaysf.web - cors-filter - + org.apache.tomcat tomcat-catalina + provided diff --git a/hapi-fhir-jpaserver-uhnfhirtest/src/main/webapp/WEB-INF/web.xml b/hapi-fhir-jpaserver-uhnfhirtest/src/main/webapp/WEB-INF/web.xml index ffdf80ad89b..b7f03fb93f2 100644 --- a/hapi-fhir-jpaserver-uhnfhirtest/src/main/webapp/WEB-INF/web.xml +++ b/hapi-fhir-jpaserver-uhnfhirtest/src/main/webapp/WEB-INF/web.xml @@ -161,7 +161,7 @@ CORS Filter - ca.uhn.fhirtest.CORSFilter_ + org.apache.catalina.filters.CorsFilter A comma separated list of allowed origins. Note: An '*' cannot be used for an allowed origin when using credentials. cors.allowed.origins diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 08f981fe1f4..f937ee03a07 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -29,6 +29,13 @@ fails to detect the presents of DSTU3 structures. Thanks to GitHub user @vijayt27 for reporting! + + All server examples as well as the CLI have been + switched from using eBay's CORS filter to using + the Apache Tomcat CORS filter instead. The former + has become unmaintained and has unfixed bugs so + it is no longer recommended for use. +