Skip to content

Commit

Permalink
add X-Prebid header to ajax requests fixes #6627
Browse files Browse the repository at this point in the history
  • Loading branch information
snapwich committed Apr 29, 2021
1 parent e206244 commit 827c941
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ 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);
});
Expand Down

0 comments on commit 827c941

Please sign in to comment.