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

Commit cb37c11

Browse files
committed
Remove fallback
1 parent 3bc3456 commit cb37c11

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/CorsServiceProvider.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ public function boot()
3535
} elseif ($this->app instanceof LumenApplication) {
3636
$this->app->configure('cors');
3737
}
38-
39-
// Add the headers on the Request Handled event as fallback in case of exceptions
40-
if (class_exists(RequestHandled::class) && $this->app->bound('events')) {
41-
$this->app->make('events')->listen(RequestHandled::class, function (RequestHandled $event) {
42-
$this->app->make(HandleCors::class)->onRequestHandled($event);
43-
});
44-
}
4538
}
4639

4740
/**

0 commit comments

Comments
 (0)