Skip to content

Commit

Permalink
Remove server side anonymisation headers on Beacon (close #887)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Boocock authored and paulboocock committed Feb 3, 2021
1 parent a5630d1 commit 02d1d7f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/js/out_queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,7 @@ export function OutQueueManager(
});

if (beaconPreflight) {
const headers = { type: 'application/json' };
if (anonymousTracking) {
header['SP-Anonymous'] = '*';
}
const blob = new Blob([encloseInPayloadDataEnvelope(attachStmToEvent(eventBatch))], headers);
const blob = new Blob([encloseInPayloadDataEnvelope(attachStmToEvent(eventBatch))], { type: 'application/json' });
try {
beaconStatus = navigator.sendBeacon(url, blob);
} catch (error) {
Expand Down

0 comments on commit 02d1d7f

Please sign in to comment.