Hello all,

I'm a RESTEasy 2.3.5 version user and I experiencing some issues while
trying to enable CORS.
I'm using this CORS filter implementation
<http://software.dzhuvinov.com/cors-filter.html> (which is basically a
servlet filter) and it works well for successful responses, but when I have
to handle errors through ExceptionMapper, which returns a new response (for
ex. Response.status(Response.Status.FORBIDDEN).build()) it removes the CORS
headers previously set by the filter mentioned.

I saw there a new CorsFilter
<https://github.com/resteasy/Resteasy/blob/70e918d9bbcd534ce177ae5b0a62b46408cf51e5/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/interceptors/CorsFilter.java>
created
in 3.0.7 version, based on interceptors.

So, my question is: how would I implement CORS in a application which uses
previous version of RESTEasy?

Thanks in advance,

Gervasio
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://www.hpccsystems.com
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to