mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 17:36:53 +01:00
* Correct security and privacy guidance Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9c2eebc4-dcd5-4b85-8113-90772d818900 * Address security privacy review findings Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9c2eebc4-dcd5-4b85-8113-90772d818900 --------- Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com>
13 lines
389 B
AL
13 lines
389 B
AL
codeunit 50207 "Sec Sample SecretText Good"
|
|
{
|
|
procedure CallExternalApi(ApiKey: SecretText)
|
|
var
|
|
HttpClient: HttpClient;
|
|
Response: HttpResponseMessage;
|
|
Headers: HttpHeaders;
|
|
begin
|
|
Headers := HttpClient.DefaultRequestHeaders();
|
|
Headers.Add('X-Api-Key', ApiKey);
|
|
HttpClient.Get('https://api.example.com/data', Response);
|
|
end;
|
|
}
|