Add CorsOptions test

This commit is contained in:
Alejandro Celaya
2025-07-16 08:29:57 +02:00
parent 1d96cc0279
commit 3369afe22c
3 changed files with 43 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ final readonly class CorsOptions
return $response->withHeader('Access-Control-Allow-Origin', '*');
}
$requestOrigin = $request->getHeader('Origin');
$requestOrigin = $request->getHeaderLine('Origin');
if (
// The special <origin> value means we should allow requests from the origin set in the request's Origin
// header