From c84cfce617b7b5128d4f34fc53087854c5b41c4b Mon Sep 17 00:00:00 2001 From: Jurij Sinickij Date: Tue, 31 May 2022 15:25:03 +0300 Subject: [PATCH] Adf adapter: avoid preflight request --- modules/adfBidAdapter.js | 3 --- test/spec/modules/adfBidAdapter_spec.js | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/adfBidAdapter.js b/modules/adfBidAdapter.js index 0b9c72a2cee..e21c4219baf 100644 --- a/modules/adfBidAdapter.js +++ b/modules/adfBidAdapter.js @@ -232,9 +232,6 @@ export const spec = { method: 'POST', url: 'https://' + adxDomain + '/adx/openrtb', data: JSON.stringify(request), - options: { - contentType: 'application/json' - }, bids: validBidRequests }; }, diff --git a/test/spec/modules/adfBidAdapter_spec.js b/test/spec/modules/adfBidAdapter_spec.js index 25f7fda4419..4317fd3258b 100644 --- a/test/spec/modules/adfBidAdapter_spec.js +++ b/test/spec/modules/adfBidAdapter_spec.js @@ -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); });