Configure Response object for Rest Services inside a Jersey-Grizzly server, in OSGi container (CORS error prevention with Jersey 1x)
问题 The last couple of days, I have been struggling with an issue. I've created a rest service hosted by a Grizzly server inside an OSGi container. Everything is working perfectly at this point. Now, I want to add a header in every response.Not so complex or illogical right? Yet, I can't find a way to do it. I have tried to: 1) Get the response object inside the rest functions as this question suggests (pretty textbook when you are not under OSGi). 2) Add a handler using the code above (in this