Closed gigerIT closed 1 year ago
How does your config look like? An array with an explicit null value?
Yes we have some entries that are only applied when the app/env is in debug mode.
'allowed_origins' => ['prod.domain.com', config('app.debug') ? '*.pages.dev' : null],
I guess we also could use '' instead of null.
I'm inclined to think you shouldn't pass a null version.
You can keep the null
and wrap the whole []
in array_filter()
Fixes:
strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in vendor/fruitcake/php-cors/src/CorsService.php on line 108