Thanks everyone for their input. Can't say was my solution correct or not, but I got result I was expection.
I combined info found here Filter requests for CORS
with answer from this question Java / Jetty: How to Add Filter to Embedded Jetty. I wasn't sure how to add a filter, that would listen for request and set response headers accordingly.
Hope that solution will help to those who might come in contact with same situation.