Document switch in CORS filter

This commit is contained in:
James Agnew 2016-11-21 14:12:04 +01:00
parent b5b57a5d63
commit 285b8aa1dd
7 changed files with 31 additions and 32 deletions

View File

@ -83,16 +83,6 @@
</dependency>
<!-- Used for CORS support -->
<dependency>
<groupId>org.ebaysf.web</groupId>
<artifactId>cors-filter</artifactId>
<exclusions>
<exclusion>
<artifactId>servlet-api</artifactId>
<groupId>javax.servlet</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- Spring Web is used to deploy the server to a web container. -->
<dependency>
@ -158,6 +148,10 @@
<artifactId>phloc-schematron</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
</dependency>
</dependencies>
<build>

View File

@ -66,7 +66,7 @@
<!-- This filters provide support for Cross Origin Resource Sharing (CORS) -->
<filter>
<filter-name>CORS Filter</filter-name>
<filter-class>org.ebaysf.web.cors.CORSFilter</filter-class>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
<init-param>
<description>A comma separated list of allowed origins. Note: An '*' cannot be used for an allowed origin when using credentials.</description>
<param-name>cors.allowed.origins</param-name>

View File

@ -93,18 +93,6 @@
<artifactId>thymeleaf</artifactId>
</dependency>
<!-- Used for CORS support -->
<dependency>
<groupId>org.ebaysf.web</groupId>
<artifactId>cors-filter</artifactId>
<exclusions>
<exclusion>
<artifactId>servlet-api</artifactId>
<groupId>javax.servlet</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- Spring Web is used to deploy the server to a web container. -->
<dependency>
<groupId>org.springframework</groupId>
@ -163,6 +151,17 @@
<artifactId>phloc-schematron</artifactId>
</dependency>
<!--
Used for CORS support
If you are deploying your project to Apache Tomcat, you can
comment this dependency out since the tomcat CORS filter will
already be available on the classpath
-->
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
</dependency>
</dependencies>
<build>

View File

@ -57,12 +57,10 @@
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- This filters provide support for Cross Origin Resource Sharing (CORS) -->
<filter>
<filter-name>CORS Filter</filter-name>
<filter-class>org.ebaysf.web.cors.CORSFilter</filter-class>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
<init-param>
<description>A comma separated list of allowed origins. Note: An '*' cannot be used for an allowed origin when using credentials.</description>
<param-name>cors.allowed.origins</param-name>

View File

@ -159,14 +159,15 @@
<artifactId>commons-dbcp2</artifactId>
</dependency>
<!-- Only required for CORS support -->
<dependency>
<groupId>org.ebaysf.web</groupId>
<artifactId>cors-filter</artifactId>
</dependency>
<!--
Only required for CORS support - Change the scope from
"provided" to "compile" if you are deploying to something
other than Tomcat
-->
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

View File

@ -161,7 +161,7 @@
<!-- This filters provide support for Cross Origin Resource Sharing (CORS) -->
<filter>
<filter-name>CORS Filter</filter-name>
<filter-class>ca.uhn.fhirtest.CORSFilter_</filter-class>
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
<init-param>
<description>A comma separated list of allowed origins. Note: An '*' cannot be used for an allowed origin when using credentials.</description>
<param-name>cors.allowed.origins</param-name>

View File

@ -29,6 +29,13 @@
fails to detect the presents of DSTU3 structures. Thanks
to GitHub user @vijayt27 for reporting!
</action>
<action type="add">
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.
</action>
</release>
<release version="2.1" date="2016-11-11">
<action type="add">