From 93b3fd9ffc3fae8fa1b918454b4e01059d3e1506 Mon Sep 17 00:00:00 2001 From: Patrick McCann Date: Wed, 5 May 2021 10:45:22 -0400 Subject: [PATCH] Revert "add X-Prebid header to ajax requests fixes #6627 (#6676)" (#6702) This reverts commit a887289546bdf830a3ff450a664627471eec9dfc. --- src/ajax.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ajax.js b/src/ajax.js index d96eb1bb5be..b1e4cbdbdff 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -75,12 +75,11 @@ export function ajaxBuilder(timeout = 3000, {request, done} = {}) { if (options.withCredentials) { x.withCredentials = true; } - x.setRequestHeader('x-prebid', 'pbjs/$prebid.version$'); utils._each(options.customHeaders, (value, header) => { x.setRequestHeader(header, value); }); if (options.preflight) { - x.setRequestHeader('x-requested-with', 'XMLHttpRequest'); + x.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); } x.setRequestHeader('Content-Type', options.contentType || 'text/plain');