fruitcake/php-cors

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

gigerIT opened this issue · 1 comments

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

Did you make sure to have the config/cors.php file?
Did you make sure that the 'allowed_origins' variable in this file has some URLs?