Fix PunchOut 401 SharedSecret, HTTPS & iframe cookie bugs.
Half of all PunchOut UAT failures happen before the buyer even sees a product: rejected SharedSecret, blocked third-party session cookies inside Ariba/Coupa iframes, or HTTP return URLs.
<!-- COMMON UAT FAILURES --> 1. Set-Cookie: session=abc; SameSite=Strict <!-- DROPPED inside Ariba/Coupa iframe! --> 2. <BrowserFormPost><URL>http://...</URL> <!-- REJECTED: non-HTTPS return URL --> 3. Comparing SharedSecret with === and whitespace <!-- 401 mismatch + timing leak -->
<!-- MAILLON PRODUCTION PATTERN --> 1. Set-Cookie: __Host-maillon_po=...; HttpOnly; Secure; SameSite=None; Partitioned 2. Strict HTTPS check + private IP SSRF block on BrowserFormPost / HOOK_URL 3. Constant-time crypto.timingSafeEqual() + encrypted-at-rest SharedSecret (AES-256-GCM)
Root Causes & Permanent Fix
SameSite=Lax or Strict cookies in iframes
Chrome and Edge block standard cookies when the PunchOut storefront opens inside an ERP iframe. Use Secure; SameSite=None; Partitioned (CHIPS).
Whitespace or case typos in Identity / SharedSecret
Copy-pasting credentials from email often appends spaces or swaps NetworkId vs DUNS domain.
Never logging raw SharedSecrets
Keep human-readable Live Logs that show why auth failed (wrong identity vs wrong secret) while redacting secret values to [REDACTED].
Try Maillon PunchOut Gateway in 1 click (pre-filled demo sandbox)
Explore a pre-filled B2B catalog, SAP Ariba cXML & SAP OCI 4.0 test buyers, live Simulator, and PO PDF/CSV exports — zero signup required.
Frequently Asked Questions
Modern browsers block third-party cookies in iframes unless your session cookie carries Secure, SameSite=None, and Partitioned attributes — or the buyer opens PunchOut in a new tab.
Every buyer connection in app.maillonapp.fr generates a revocable Shareable IT Sheet where the buyer's IT team can test their SharedSecret safely without emailing passwords back and forth.