On Thu, Jul 28, 2011 at 9:05 AM, Florian Moga <moga....@gmail.com> wrote:
> On Thu, Jul 28, 2011 at 10:59 AM, ant elder <antel...@apache.org> wrote:
>>
>> I'll go add it as an attribute on binding.rest for now and we can see
>> what thats like. I would quite like to keep it simple without needing
>> extra optional config which is why it would be good to have it enabled
>> by default and to not be something like an optional wireFormat or
>> operationSelector.
>>
>>   ...ant
>
> Sounds good to me.
>
> Florian

I've just committed some minimal code to show how Cross-Origin
Resource Sharing works by setting some Access-Control headers in the
REST binding. To try it out run the
samples/getting-started/helloworld-jaxrs sample with "mvn tuscany:run"
and then in a browser open the standalone web page
samples/getting-started/helloworld-jaxrs/cors.html and click the link.

This code just shows whats needed to get a CORS client running, to do
it more completely we'd need to add support for it to the scdl to
enable/disable the function and perhaps some control of the header
values. I could do that in binding.rest or perhaps in a binding.jaxrs
to keep it more separate from all the old rest support.

   ...ant


   ...ant

Reply via email to