Skip to content

Instantly share code, notes, and snippets.

View rjschie's full-sized avatar

Ryan Schie rjschie

  • Portugal
  • 18:45 (UTC +01:00)
  • LinkedIn in/rschie
View GitHub Profile
@danharper
danharper / CatchAllOptionsRequestsProvider.php
Last active April 20, 2024 01:53
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 {