addCorsHandler method

AsyncPatternMatcher<Request, Response> addCorsHandler()

Implementation

AsyncPatternMatcher<Request, Response> addCorsHandler() => when2(
      matchRequest('OPTIONS', '/**'),
      (Map<String, String> headers, body) => Response.ok(''),
    );