fruitcake / laravel-cors

Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application
MIT License
6.27k stars 613 forks source link

Support Laravel Octane #532

Closed cerbero90 closed 1 year ago

cerbero90 commented 3 years ago

This PR aims to support Laravel Octane by avoiding the injection of the IoC container.

The container instance injected in the class HandleCors is not removed in this PR to avoid potential breaking changes, however the injected instance won't be called in HandleCors.

Facades are used instead as they always resolve up-to-date instances out of the latest version of the container.

barryvdh commented 1 year ago

Closing this as CORS is now included using https://github.com/fruitcake/php-cors and the Laravel core middleware