HAS been Blocked by Cors Policy

Error:

The following error occurred at the front end access:

Access to XmlhttpRequest at ‘http: // localhost: 8000 / API / SLIDESHOW’ from Origin ‘http: // Localhost: 8080 ‘Has Been Blocked by Cors Policy: No’ Access-Control-Allow-Origin ‘Header IS Present on The Requested Resource.

Solution :

Installation . CORS Middleware for Laravel (fruitcake / laravel-cors)

The laravel-cors package allows you to send Cross-Origin Resource Sharing headers with Laravel middleware configuration

https:. / /Github.com/fruitcake/laravel-cors

© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment