Andrew
The best option is to make an exception mapper for
DefaultOptionsMethodException and add the CORS headers within the toResponse
method of the mapper. For example:
@Provider
public class OptionsMethodExceptionMapper implements
ExceptionMapperDefaultOptionsMethodException{
@Override
In 3.0.7 I implemented a CORS filter:
https://github.com/resteasy/Resteasy/blob/master/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/interceptors/CorsFilter.java
On 4/2/2014 3:03 AM, Rajshekhar AndalaPisharam wrote:
Andrew
The best option is to make an exception mapper for