disabledCors static method

void disabledCors(
  1. dynamic callback()
)

group of route to disabled cors

Route.disabledCors(() {
  Route.get('/ping', controller);
});

Implementation

static void disabledCors(Function() callback) {
  _cors(false, callback);
}