CORS handling

Cross Origin Resource Sharing是一个安全的资源请求途径(AJAX跨域问题的解决方案)

Vert.x-Web包含了一个CorsHandler, 用于处理CORS协议. 例如

  1. router.route().handler(CorsHandler.create("vertx\\.io").allowedMethod(HttpMethod.GET));
  2. router.route().handler(routingContext -> {
  3. // Your app handlers
  4. });

TODO more CORS docs