[英]CORS support for Apache CXF 2.4 (JAX-RS 1.1)
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).我正在为 Apache CXF 2.4.x (JAX-RS 1.1) 寻找 CORS 的开源实现,例如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.不幸的是,由于使用 Apache CXF 2.4.6 的 JBoss 7.1.1,我无法更新 Apache CXF。
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.我所有的测试都通过了,我希望 cxf-common-utilities 向后兼容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.