CORS (Cross-Origin Resource Sharing) is a way to let a browser to access resources from another server. CORS is required when the user interface is running on a different server than the API it uses. Without CORS headers the API would deny the request from the client.
This modules make it easy to configure which requests are accepted by our Lumen applications and makes sure that the incoming requests are handled properly.