From 38270654f0edd097ca00523c2bb5c770a17db8b0 Mon Sep 17 00:00:00 2001 From: dnson Date: Tue, 13 Jun 2023 20:13:08 +0700 Subject: [PATCH] enable global id only when in signed mode (#252) --- lib/record.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/record.js b/lib/record.js index b9ac1912..aa18e0d5 100644 --- a/lib/record.js +++ b/lib/record.js @@ -200,7 +200,7 @@ exports._sendRecord = function _sendRecord (request, success, error, blockedEven requestHeaders['Authorization'] = 'TD1 ' + request.apikey requestHeaders['User-Agent'] = navigator.userAgent - if (this.isGlobalIdEnabled()) { + if (this.inSignedMode() && this.isGlobalIdEnabled()) { requestHeaders['Content-Type'] = misc.globalIdAdlHeaders['Content-Type'] requestHeaders['Accept'] = misc.globalIdAdlHeaders['Accept'] } else {