Wow, I wrote my fist Java production code and this make me happy a lot
A cors filter to my Ionic Application.
My fist language is definily JavaScript, I had started wrote code to pay my accounts last than a year and since I have wrote just some front end code and some backend in JavaScript and PHP. But in my last job I have to make a Java intergration API to my hibrid project and the api dont was preparacted to make some calls, this was bug me a lot with some cors problems. So I was desingned to solve this, cause the time was soo busy with some other projects. I began my jorney read a lot of articles and seeing code and copy and paste and asking help to everyone. AND FINNALY I and some friends that help me to be here, solving this problem, come to a class to solve our problem!!! And this will be the fist pull request to a Java production system.

This is the class, with her we can resolve our cors problem. We are using JBOSS 7 Server, and the Restesy library. This class is not the most securi one, but my colleagues and I are searching for the best sollution, for now is make the right job.
I’m going to put it here, maybe it can help somebody: https://gist.github.com/ronaiza-cardoso/e7c725df1bc01965a67187b3edaf0992
