Skip to content

Ad2iction Bid Adapter: send bid request as text/plain to avoid CORS preflight - #16344

Merged
monis0395 merged 1 commit into
prebid:masterfrom
charlie0228:ad2iction-text-plain
Nov 26, 2026
Merged

monis0395 merged 1 commit into
prebid:masterfrom
charlie0228:ad2iction-text-plain

Conversation

@charlie0228

Copy link
Copy Markdown
Contributor

Type of change

  • Updated bidder adapter
  • Other: performance (removes a CORS preflight)

Description of change

Drops options.contentType: 'application/json' from the ad2iction bid request, so core sends the same JSON body as text/plain and the browser no longer sends a CORS preflight before every bid request. withCredentials: false is 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 both text/plain and application/json (MIME parameters such as ;charset=UTF-8 are ignored). Re-running the probe from #16295 against production:

body application/json text/plain;charset=UTF-8
valid, udid: "probe-udid-123" 200, Set-Cookie: ad2udid=probe-udid-123 200, Set-Cookie: ad2udid=probe-udid-123
{not json 400 400

We also tested a live placement on a publisher site: it returned a real bid (same price and currency) for both application/json and text/plain.

Tests

The spec now asserts that the bid request has no contentType and still sends withCredentials: false.

Other information

Supersedes #16295. Related: #16293, #12948.
Maintainer: @charlie0228 (prebid@ad2iction.com)

🤖 Generated with Claude Code

…reflight

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T04:45:38.597541Z e465aa0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@monis0395
monis0395 merged commit f3c83d1 into prebid:master Nov 26, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants