kaspersorensen commented on a change in pull request #22: Add support for CORS URL: https://github.com/apache/metamodel-membrane/pull/22#discussion_r289007032
########## File path: undertow/src/main/java/org/apache/metamodel/membrane/server/WebServer.java ########## @@ -52,10 +53,12 @@ public static void main(final String[] args) throws Exception { final String portEnv = System.getenv("MEMBRANE_HTTP_PORT"); final int port = Strings.isNullOrEmpty(portEnv) ? DEFAULT_PORT : Integer.parseInt(portEnv); + final String enableCorsEnv = System.getenv("ENABLE_CORS"); + final boolean enableCors = !Strings.isNullOrEmpty(enableCorsEnv); Review comment: We should probably have it enabled by default. And the env. var should probably be prefixed with `MEMBRANE_` like other env. variables. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services