Skip to content

Commit

Permalink
Adf adapter: avoid preflight request (#8498)
Browse files Browse the repository at this point in the history
  • Loading branch information
braizhas authored May 31, 2022
1 parent 0354c00 commit 97f2a8b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions modules/adfBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,6 @@ export const spec = {
method: 'POST',
url: 'https://' + adxDomain + '/adx/openrtb',
data: JSON.stringify(request),
options: {
contentType: 'application/json'
},
bids: validBidRequests
};
},
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/adfBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe('Adf adapter', function () {

assert.equal(request.method, 'POST');
assert.equal(request.url, 'https://10.8.57.207/adx/openrtb');
assert.deepEqual(request.options, {contentType: 'application/json'});
assert.equal(request.options, undefined);
assert.ok(request.data);
});

Expand Down

0 comments on commit 97f2a8b

Please sign in to comment.