Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Remove fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh committed Feb 20, 2022
1 parent 3bc3456 commit cb37c11
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/CorsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ public function boot()
} elseif ($this->app instanceof LumenApplication) {
$this->app->configure('cors');
}

// Add the headers on the Request Handled event as fallback in case of exceptions
if (class_exists(RequestHandled::class) && $this->app->bound('events')) {
$this->app->make('events')->listen(RequestHandled::class, function (RequestHandled $event) {
$this->app->make(HandleCors::class)->onRequestHandled($event);
});
}
}

/**
Expand Down

0 comments on commit cb37c11

Please sign in to comment.