minor updates for headers

This commit is contained in:
David Bomba 2024-10-02 12:46:30 +10:00
parent 01e49d20ad
commit bfb5d95569
1 changed files with 5 additions and 1 deletions

View File

@ -21,13 +21,17 @@ class NinjaPdf
{ {
$client = new \GuzzleHttp\Client(['headers' => [ $client = new \GuzzleHttp\Client(['headers' => [
'X-Ninja-Token' => 'test_token_for_now', 'X-Ninja-Token' => 'test_token_for_now',
], 'X-URL' => config('ninja.app_url'),
],
]); ]);
$response = $client->post($this->url, [ $response = $client->post($this->url, [
RequestOptions::JSON => ['html' => $html], RequestOptions::JSON => ['html' => $html],
]); ]);
return $response->getBody()->getContents(); return $response->getBody()->getContents();
} }
} }