Skip to content

Commit

Permalink
Adf adapter: avoid preflight request
Browse files Browse the repository at this point in the history
  • Loading branch information
braizhas committed May 31, 2022
1 parent e5b3877 commit c84cfce
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 c84cfce

Please sign in to comment.