Skip to content

Instantly share code, notes, and snippets.

View rjschie's full-sized avatar

Ryan Schie rjschie

  • Accurx
  • London
  • 23:47 (UTC +01:00)
  • LinkedIn in/rschie
View GitHub Profile
@danharper
danharper / CatchAllOptionsRequestsProvider.php
Last active March 17, 2025 15:20
Lumen with CORS and OPTIONS requests
<?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 {