You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@wink.apache.org by Michael Zehrer <ze...@zepan.org> on 2012/09/02 09:29:55 UTC

Wink and Cross-Origin Resource Sharing (CORS) Support

Hi Wink developers,

is there support for Cross-Origin Resource Sharing (CORS
http://bit.ly/OM5MRw) Support in Wink?


Best regards,

Michael

-- 
Michael Zehrer
@mzehrer <http://twitter.com/mzehrer> / +Michael
Zehrer<http://plus.google.com/108253608683408979021>

Re: Wink and Cross-Origin Resource Sharing (CORS) Support

Posted by Luciano Resende <lu...@gmail.com>.
On Sun, Sep 2, 2012 at 12:29 AM, Michael Zehrer <ze...@zepan.org> wrote:
> Hi Wink developers,
>
> is there support for Cross-Origin Resource Sharing (CORS
> http://bit.ly/OM5MRw) Support in Wink?
>
>

There is no CORS support directly in Wink, but it should be easy to
add a responseHandler that provides the necessary headers to support
CORS.

See possible examples in :

https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/TuscanyRESTServlet.java

https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/common-http/src/main/java/org/apache/tuscany/sca/common/http/cors/CORSHeaderProcessor.java

If you have some free cycles, It would be great if you could help us
have CORS support direct in Wink.

-- 
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/