Skip to content

Commit

Permalink
revert integration type header due to CORS error (#12800)
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-gielow-ttd authored Feb 24, 2025
1 parent 866b18e commit 86dccc4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions modules/ttdBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,6 @@ export const spec = {
data: topLevel,
options: {
withCredentials: true,
customHeaders: {
'x-integration-type': 1,
},
}
};

Expand Down
7 changes: 0 additions & 7 deletions test/spec/modules/ttdBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,6 @@ describe('ttdBidAdapter', function () {
expect(requestBody.site.publisher.id).to.equal(baseBannerBidRequests[0].params.publisherId);
});

it('sends integration type header', function () {
const requestBody = testBuildRequests(baseBannerBidRequests, baseBidderRequest);
expect(requestBody.options).to.be.not.null;
expect(requestBody.options.customHeaders).to.be.not.null;
expect(requestBody.options.customHeaders['x-integration-type']).to.equal(1);
});

it('sends placement id in tagid', function () {
const requestBody = testBuildRequests(baseBannerBidRequests, baseBidderRequest).data;
expect(requestBody.imp[0].tagid).to.equal(baseBannerBidRequests[0].params.placementId);
Expand Down

0 comments on commit 86dccc4

Please sign in to comment.