I recently tries enabling CORS in Laravel 5.4 but unfortunately it doesn\'t want to work. I have included the code and the error that it\'s giving me below. Can anyone help
Just add this code on your routes
header('Access-Control-Allow-Origin: http://yourdomain.com/');