Permalink
Browse files

Enable CORS by default

git-svn-id: https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk@1397788 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 5236ae3 commit 59e9f7d06e7c9d87be74fe90640e6caf6c23c2ff @raymondfeng raymondfeng committed Oct 13, 2012
@@ -149,6 +149,9 @@ public RESTBinding read(XMLStreamReader reader, ProcessorContext context) throws
Boolean isCORS = getBoolean(reader, CORS);
if(isCORS != null) {
restBinding.setCORS(isCORS);
+ } else {
+ // Default to true
+ restBinding.setCORS(Boolean.TRUE);
}
break;

0 comments on commit 59e9f7d

Please sign in to comment.