I'm looking for an open source implementation of CORS for Apache CXF 2.4.x (JAX-RS 1.1) like the CrossOriginResourceSharingFilter (Apache CXF >2.5.0).
Unfortunately I can't update Apache CXF because of JBoss 7.1.1, which uses Apache CXF 2.4.6.
I found a Workaround. I added
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-security-cors</artifactId>
<version>2.5.3</version>
</dependency>
and I replaced
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-common-utilities</artifactId>
<version>2.4.6</version>
</dependency>
with
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-common-utilities</artifactId>
<version>2.5.3</version>
</dependency>
All my tests passed and I hope that cxf-common-utilities is backward compatible.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.