From c918a7b508eb6221f931d8d6307b3c839d5ab874 Mon Sep 17 00:00:00 2001 From: rfeng Date: Wed, 23 May 2012 17:12:46 +0000 Subject: Add CORS support for servlet based impl with REST binding git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1341952 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tuscany/sca/binding/rest/xml/RESTBindingProcessor.java | 1 + 1 file changed, 1 insertion(+) (limited to 'sca-java-2.x/trunk/modules/binding-rest') diff --git a/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/xml/RESTBindingProcessor.java b/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/xml/RESTBindingProcessor.java index da0e1ece06..0e8b352a2a 100644 --- a/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/xml/RESTBindingProcessor.java +++ b/sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/xml/RESTBindingProcessor.java @@ -205,6 +205,7 @@ public class RESTBindingProcessor extends BaseStAXArtifactProcessor implements S restBinding.setResponseWireFormat((WireFormat)extension); } else if(extension instanceof OperationSelector) { restBinding.setOperationSelector((OperationSelector)extension); + restBinding.setCORS(true); } } break; -- cgit v1.2.3