Skip to content

Commit

Permalink
enable global id only when in signed mode (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnutz authored Jun 13, 2023
1 parent 43d1ba5 commit 3827065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/record.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3827065

Please sign in to comment.