I'm trying to implement proxy for vert.x sockJS server with NGINX. when i try to access the eventbus URL from client i get "access-allow-origin" issue. Is there a way to implement CORS to sockJSHandler?
router = Router.router(vertx);
router.route().handler(CorsHandler.create("*")
.allowedMethod(HttpMethod.GET)
.allowedMethod(HttpMethod.POST)
.allowedMethod(HttpMethod.OPTIONS)
.allowedHeader("X-PINGARUNER")
.allowedHeader("Content-Type"));
SockJSHandler sJSHandler= SockJSHandler.create(vertx).bridge(opts);
router.route("/message/broadcast/*").handler(sJSHandler);
vertx.createHttpServer().requestHandler(router::accept).listen(port);