I have installed NelmioCorsBundle with composer require nelmio/cors-bundle but when i send a request i have the below error:
Attempted to load class "NelmioCorsBundle" from namespace "App\Nelmio\CorsBundle"
Did you forget a "use" statement for "Nelmio\CorsBundle\NelmioCorsBundle"?
You should have the following line in your
config/bundles.php
: