Skip to content

Commit

Permalink
Revert "add X-Prebid header to ajax requests fixes #6627 (#6676)"
Browse files Browse the repository at this point in the history
This reverts commit a887289.
  • Loading branch information
patmmccann authored May 5, 2021
1 parent a887289 commit 902dfc4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 902dfc4

Please sign in to comment.