fruitcake / php-cors

CORS (Cross-Origin Resource Sharing) for your Symfony/Laravel requests
MIT License
211 stars 13 forks source link

How to CORS in Lumen #18

Open loxK opened 1 year ago

loxK commented 1 year ago

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 ?

rahmatik1010 commented 5 months ago

+1 I've same problem