And that's all fine - this is just my first swim thru CORS and didn't want to start biting off something that I didn't really need, but it sounds like for our use case that we will need it.
Just a bit surprised that I didn't find more questions/posts on the forum about it. I did see that CXF had added some initial support and also found an article about Jersey and CORS, but I think that was 'how to create the filter' you are talking about. Friday, we started reading and implementing code based on the Html5rocks tutorial, but again, I just wanted to verify that is what we needed before getting too far down the implementation path. Thanks Bill! -----Original Message----- From: Bill Burke [mailto:bbu...@redhat.com] Sent: Monday, October 28, 2013 10:09 AM To: resteasy-users@lists.sourceforge.net Subject: Re: [Resteasy-users] CORS support needed? Not really hard to add yourself: Read this: http://www.html5rocks.com/en/tutorials/cors/ What we could add to resteasy is a filter that takes a list of allowed origins and handles preflight and simple requests. But, it would be really simple to add it yourself. On 10/28/2013 11:01 AM, Mike Miller wrote: > We are using RestEasy 2.3.5. > > I read thru a couple threads on the mailing list and trying to figure > out if we need CORS support for our usage. Just looking for some > verification or validation. > > We are exposing a lot of our services thru resteasy and the > expectation is that our resources will be called from mobile applications > using Ajax > to call the services. We support calls for GET, PUT, POST and DELETE > consuming and producing both json and xml. Testing from the Chrome > Advanced Rest Client works great but once we start trying to make > jQuery (or other Javascript) AJAX calls from web pages, we run into problems. > We can start Chrome with the "-disable-web-security" command line > parameter but I know that's not real solution. To correctly support > these remote ajax calls do we need to provide some type of CORS support? > > > > ---------------------------------------------------------------------- > -------- October Webinars: Code for Performance Free Intel webinars > can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the > most from the latest Intel processors and coprocessors. See abstracts > and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.c > lktrk > > > > _______________________________________________ > Resteasy-users mailing list > Resteasy-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/resteasy-users > -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Resteasy-users mailing list Resteasy-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/resteasy-users