fruitcake / laravel-cors

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

PHP 8.1 Passing null to parameter #1 ($haystack) of type string is deprecated #563

Closed gigerIT closed 2 years ago

gigerIT commented 2 years ago

Hi we just upgraded to Laravel 9 and PHP 8.1 and noticed the following message in the logs: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in vendor/fruitcake/php-cors/src/CorsService.php on line 108