Silex CORS Provider Install composer require mrprompt/silex-cors-provider Use use SilexFriends\Cors\Cors as CorsServiceProvider; ... $app->register(new CorsServiceProvider()); Testing Just run phpunit without parameters phpunit LICENSE MIT