Bill,

I created a filter that follows the spec (as best I can tell :-) ) and would 
like to contribute it the project and have a couple questions:

1) I assume you would want a pull request for the filter?  (This assumes you 
want the filter)

2) We use RestEasy 2.3.5,  so what's your thought about which version I should 
create the filter/pull  request against?  2.3.5 or whatever is the latest?

3) I have test cases created but we use Mokito for mocking.  I noticed that 
RestEasy has some mocking but the 2.3.5 version (didn't check higher yet) 
doesn't have mocking support for the FilterConfig.   My filter uses several 
filter init parameters , so I needed mocking for that class and stayed with 
Mockito for all the mocking in the test cases.


-----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

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to