Ratchet icon indicating copy to clipboard operation
Ratchet copied to clipboard

OriginCheck - undefined key when no origin is specified in request header

Open quakemmo opened this issue 4 years ago • 0 comments

In this file: vendor/cboden/ratchet/src/Ratchet/Http/OriginCheck.php, at line 35, this code:

        $header = (string)$request->getHeader('Origin')[0];

...produces an undefined array key warning when a request has no Origin header set at all.

quakemmo avatar Mar 20 '22 11:03 quakemmo