Document switch in CORS filter
This commit is contained in:
parent
b5b57a5d63
commit
285b8aa1dd
|
@ -83,16 +83,6 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Used for CORS support -->
|
<!-- 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. -->
|
<!-- Spring Web is used to deploy the server to a web container. -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -158,6 +148,10 @@
|
||||||
<artifactId>phloc-schematron</artifactId>
|
<artifactId>phloc-schematron</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.tomcat</groupId>
|
||||||
|
<artifactId>tomcat-catalina</artifactId>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
<!-- This filters provide support for Cross Origin Resource Sharing (CORS) -->
|
<!-- This filters provide support for Cross Origin Resource Sharing (CORS) -->
|
||||||
<filter>
|
<filter>
|
||||||
<filter-name>CORS Filter</filter-name>
|
<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>
|
<init-param>
|
||||||
<description>A comma separated list of allowed origins. Note: An '*' cannot be used for an allowed origin when using credentials.</description>
|
<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>
|
<param-name>cors.allowed.origins</param-name>
|
||||||
|
|
|
@ -93,18 +93,6 @@
|
||||||
<artifactId>thymeleaf</artifactId>
|
<artifactId>thymeleaf</artifactId>
|
||||||
</dependency>
|
</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. -->
|
<!-- Spring Web is used to deploy the server to a web container. -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
|
@ -163,6 +151,17 @@
|
||||||
<artifactId>phloc-schematron</artifactId>
|
<artifactId>phloc-schematron</artifactId>
|
||||||
</dependency>
|
</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>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
@ -57,12 +57,10 @@
|
||||||
<url-pattern>/</url-pattern>
|
<url-pattern>/</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- This filters provide support for Cross Origin Resource Sharing (CORS) -->
|
<!-- This filters provide support for Cross Origin Resource Sharing (CORS) -->
|
||||||
<filter>
|
<filter>
|
||||||
<filter-name>CORS Filter</filter-name>
|
<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>
|
<init-param>
|
||||||
<description>A comma separated list of allowed origins. Note: An '*' cannot be used for an allowed origin when using credentials.</description>
|
<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>
|
<param-name>cors.allowed.origins</param-name>
|
||||||
|
|
|
@ -159,14 +159,15 @@
|
||||||
<artifactId>commons-dbcp2</artifactId>
|
<artifactId>commons-dbcp2</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Only required for CORS support -->
|
<!--
|
||||||
<dependency>
|
Only required for CORS support - Change the scope from
|
||||||
<groupId>org.ebaysf.web</groupId>
|
"provided" to "compile" if you are deploying to something
|
||||||
<artifactId>cors-filter</artifactId>
|
other than Tomcat
|
||||||
</dependency>
|
-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.tomcat</groupId>
|
<groupId>org.apache.tomcat</groupId>
|
||||||
<artifactId>tomcat-catalina</artifactId>
|
<artifactId>tomcat-catalina</artifactId>
|
||||||
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
|
@ -161,7 +161,7 @@
|
||||||
<!-- This filters provide support for Cross Origin Resource Sharing (CORS) -->
|
<!-- This filters provide support for Cross Origin Resource Sharing (CORS) -->
|
||||||
<filter>
|
<filter>
|
||||||
<filter-name>CORS Filter</filter-name>
|
<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>
|
<init-param>
|
||||||
<description>A comma separated list of allowed origins. Note: An '*' cannot be used for an allowed origin when using credentials.</description>
|
<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>
|
<param-name>cors.allowed.origins</param-name>
|
||||||
|
|
|
@ -29,6 +29,13 @@
|
||||||
fails to detect the presents of DSTU3 structures. Thanks
|
fails to detect the presents of DSTU3 structures. Thanks
|
||||||
to GitHub user @vijayt27 for reporting!
|
to GitHub user @vijayt27 for reporting!
|
||||||
</action>
|
</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>
|
||||||
<release version="2.1" date="2016-11-11">
|
<release version="2.1" date="2016-11-11">
|
||||||
<action type="add">
|
<action type="add">
|
||||||
|
|
Loading…
Reference in New Issue