Skip to content

Instantly share code, notes, and snippets.


mocept dmodaii

View GitHub Profile
danharper / CatchAllOptionsRequestsProvider.php
Last active Nov 4, 2020
Lumen with CORS and OPTIONS requests
View CatchAllOptionsRequestsProvider.php
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
* If the incoming request is an OPTIONS request
* we will register a handler for the requested route
class CatchAllOptionsRequestsProvider extends ServiceProvider {
You can’t perform that action at this time.