If you don’t have any idea what CORS is, then please skip this.
Save as CORS.php in the Middleware folder.
Edit app\Http\Kernel.php and add your middleware in api / routeMiddleware.

If you don’t have any idea what CORS is, then please skip this.
Save as CORS.php in the Middleware folder.
Edit app\Http\Kernel.php and add your middleware in api / routeMiddleware.