I am creating HTTP request inside controller to another server using GuzzleHttp\Client.
$response = $client->get("{$this->baseUrl}/api/v1/user/active-services", [
RequestOptions::HEADERS => [
"Authorization" => "Bearer $token",
"Accept" => "application/json",
],
]);
What additional headers do I need to pass in order to send IP address (and similar things) of the client that called my route? In some way you can say I want to do proxy for this call...
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire