ЦИТК-859 - метка партнёра в заголовке X-Solution-Info всех запросов к API
This commit is contained in:
parent
ea014623d9
commit
36d85e5aa8
@ -122,6 +122,7 @@ const checkAPIClientId = sAPIClientId => {
|
||||
//Формиорвание заголовка сообщения
|
||||
const buildHeaders = (sAPIClientId, sToken = null) => ({
|
||||
"Content-type": "application/json",
|
||||
"X-Solution-Info": "PARUS",
|
||||
Authorization: `DiadocAuth ddauth_api_client_id=${sAPIClientId}${sToken ? `,ddauth_token=${sToken}` : ""}`,
|
||||
Accept: "application/json"
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user