php-cors icon indicating copy to clipboard operation
php-cors copied to clipboard

How to CORS in Lumen

Open loxK opened this issue 2 years ago • 1 comments

Hello I switched to Lumen 9.1.6. I had composer saying that laravel-cors has to be replaced. Currently, I have in app.php :

<?php

$app->configure('cors');

$app->middleware([
    Fruitcake\Cors\HandleCors::class,
]);

$app->register(Fruitcake\Cors\CorsServiceProvider::class);

I have replaced \Fruitcake\Cors\HandleCors::class, with \Illuminate\Http\Middleware\HandleCors::class but what about the service provider ?

loxK avatar May 04 '23 02:05 loxK

+1 I've same problem

rahmatik1010 avatar Jan 29 '24 04:01 rahmatik1010

I'm sorry, Lumen is not supported. I think you can keep using laravel-cors probably?

barryvdh avatar Nov 13 '24 09:11 barryvdh