79672636

Date: 2025-06-19 21:17:27
Score: 1
Natty:
Report link

You should add the authorisation headers in the Client configuration such as:

$client = new GuzzleHttp\Client([
    'base_uri' => '127.0.0.1:3000',
    'headers' => [
        'X-API-Key' => 'abc345'
    ]
]);

See: https://docs.guzzlephp.org/en/stable/request-options.html#headers

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Max S.