Repository navigation
Ad2iction Bid Adapter: send bid request as text/plain to avoid CORS preflight - #16344
Merged
Merged
Conversation
…reflight Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
monis0395
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of change
Description of change
Drops
options.contentType: 'application/json'from the ad2iction bid request, so core sends the same JSON body astext/plainand the browser no longer sends a CORS preflight before every bid request.withCredentials: falseis kept, and the payload is unchanged.This is the same change as #16295, which was closed while we checked our endpoint. We've since deployed a server-side fix:
ads.ad2iction.com/html/prebid/now parses the JSON body for bothtext/plainandapplication/json(MIME parameters such as;charset=UTF-8are ignored). Re-running the probe from #16295 against production:application/jsontext/plain;charset=UTF-8udid: "probe-udid-123"Set-Cookie: ad2udid=probe-udid-123Set-Cookie: ad2udid=probe-udid-123{not jsonWe also tested a live placement on a publisher site: it returned a real bid (same price and currency) for both
application/jsonandtext/plain.Tests
The spec now asserts that the bid request has no
contentTypeand still sendswithCredentials: false.Other information
Supersedes #16295. Related: #16293, #12948.
Maintainer: @charlie0228 (prebid@ad2iction.com)
🤖 Generated with Claude Code