Fix timeout and CORS implementation of JVM