We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f6207b commit ffc1da5Copy full SHA for ffc1da5
Classes/Http/CorsHeaderMiddleware.php
@@ -319,6 +319,8 @@ private function areHeadersAllowed(array $headers): bool
319
if ($this->allowedHeadersAll || $this->allowedHeaders === []) {
320
return true;
321
}
322
+ // each header may comma seperated itself
323
+ $headers = array_merge(...array_map(fn(string $line) => explode(',' , $line), $headers));
324
foreach ($headers as $header) {
325
if (!in_array($header, $this->allowedHeaders, true)) {
326
return false;
0 commit comments