Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 59e9f7d06e7c9d87be74fe90640e6caf6c23c2ff 1 parent 5236ae3
@raymondfeng raymondfeng authored
View
3  modules/binding-rest/src/main/java/org/apache/tuscany/sca/binding/rest/xml/RESTBindingProcessor.java
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.