Wow, I wrote my fist Java production code and this make me happy a lot

Ronaiza Cardoso
Aug 8, 2017 · 2 min read

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.

How cors works, more here

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

Ronaiza Cardoso

Written by

Gooling The Error Message

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade