From 0197f1b6e9eaeadfa7398db24f3669e6a2f8e79f Mon Sep 17 00:00:00 2001 From: Patrick McCann Date: Fri, 20 Nov 2026 15:50:20 -0500 Subject: [PATCH] Ad2iction Bid Adapter: send bid requests as text/plain to avoid a CORS preflight Removes contentType: 'application/json' from the bid request options, so core sends the same JSON body as text/plain and the browser skips the CORS preflight. See #16293 and #12948. Co-Authored-By: Claude Opus 5.5 --- modules/ad2ictionBidAdapter.js | 1 - test/spec/modules/ad2ictionBidAdapter_spec.js | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ad2ictionBidAdapter.js b/modules/ad2ictionBidAdapter.js index 0f7cea45d14..32c1d414ca6 100644 --- a/modules/ad2ictionBidAdapter.js +++ b/modules/ad2ictionBidAdapter.js @@ -23,7 +23,6 @@ export const spec = { }); const options = { - contentType: 'application/json', withCredentials: false, }; diff --git a/test/spec/modules/ad2ictionBidAdapter_spec.js b/test/spec/modules/ad2ictionBidAdapter_spec.js index 13bc144ff37..0d25c1f9271 100644 --- a/test/spec/modules/ad2ictionBidAdapter_spec.js +++ b/test/spec/modules/ad2ictionBidAdapter_spec.js @@ -117,6 +117,8 @@ describe('ad2ictionBidAdapter', function () { expect(request.url).to.equal(API_ENDPOINT); expect(request.method).to.equal('POST'); + expect(request.options?.contentType).to.be.undefined; + expect(request.options.withCredentials).to.equal(false); }); it('should send bid request with API version', function () {