CORS or Cross-Origin Resource Sharing is a middleware that implements resource sharing across the origin. In Slim application, CORS is implemented through Access-Control-Allow-Origin header. The best way to enable CORS is by using the cors-middleware package.

BY Best Interview Question ON 30 Jan 2019