summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2012-10-13 06:44:20 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2012-10-13 06:44:20 +0000
commit11264997a0d30bee198d86c08dd4ab3bf5a796ba (patch)
tree5877ae9e511378ea0bf5fa5f4aeb257b890cf129 /sca-java-2.x/trunk/modules
parent0837d8e9ec41f697c37ba46270090e02b7d24c65 (diff)
Enable CORS by default
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1397788 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r--sca-java-2.x/trunk/modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/xml/RESTBindingProcessor.java3
1 files changed, 3 insertions, 0 deletions
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 0e8b352a2a..ee781c4838 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
@@ -149,6 +149,9 @@ public class RESTBindingProcessor extends BaseStAXArtifactProcessor implements S
Boolean isCORS = getBoolean(reader, CORS);
if(isCORS != null) {
restBinding.setCORS(isCORS);
+ } else {
+ // Default to true
+ restBinding.setCORS(Boolean.TRUE);
}
break;