private function createOptionsRoutes(Application $app)
    {
        foreach ($app['cors.allowed_methods'] as $path => $route) {
            $app->match($path, new Cors\OptionsController($route['methods']))
                ->setRequirements($route['requirements'])
                ->method('OPTIONS');
        }
    }