You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2021/04/22 00:17:10 UTC

[GitHub] [helix] dasahcc commented on a change in pull request #1705: Disable CORS by default in Helix REST

dasahcc commented on a change in pull request #1705:
URL: https://github.com/apache/helix/pull/1705#discussion_r617976935



##########
File path: helix-rest/src/main/java/org/apache/helix/rest/server/HelixRestServer.java
##########
@@ -164,7 +165,10 @@ protected ResourceConfig getResourceConfig(HelixRestNamespace namespace, Servlet
     }
     cfg.property(ContextPropertyKeys.METADATA.name(), namespace);
 
-    cfg.register(new CORSFilter());
+    if (Boolean.getBoolean(CORS_ENABLED)) {

Review comment:
       Are you trying to get it from the system property? This always give you false.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org