Skip to content

Fix: bid link relative /?bid (works on masked + direct parked domains) - #20

Merged
ralyodio merged 1 commit into
masterfrom
fix/bid-link-relative
Jul 10, 2026
Merged

Fix: bid link relative /?bid (works on masked + direct parked domains)#20
ralyodio merged 1 commit into
masterfrom
fix/bid-link-relative

Conversation

@ralyodio

Copy link
Copy Markdown
Collaborator

Bug

On a masked (Porkbun-forwarded) domain, 💰 Bid on this domain did nothing useful — it sent you back to the coming-soon page. PR #16 had made it https://<dn>/?bid=<dn> + target=_top, which breaks out of the iframe to the branded domain, where the masked forward drops ?bid.

Fix

Relative /?bid=<dn>:

  • Masked/iframed domain → navigates the frame to moshcoding.com/?bid=<dn> (same origin as the frame); the ?bid frame-ancestors rule (already in middleware) lets the bid page render in-frame, keeping the branded URL.
  • Direct domain → plain same-origin nav to the bid page.

Either way ?bid survives. No cookies involved, so no third-party-cookie issue.

Verified (local)

  • tenant page → <a class="t-bid" href="/?bid=moshcode.sh">
  • /?bid=moshcode.sh → BidPage
  • CSP on /?bid=moshcode.shframe-ancestors 'self' … https://moshcode.sh …

🤖 Generated with Claude Code

PR #16 made the bid link https://<dn>/?bid=<dn> with target=_top. On a masked
(Porkbun-forwarded) domain that breaks out to the branded domain, where the
masked forward drops the ?bid query → you land back on the coming-soon page.

Revert to a relative /?bid=<dn>. On a masked/iframed domain it navigates the
frame to moshcoding.com/?bid=<dn> (same origin as the frame) and the ?bid CSP
frame-ancestors rule (already in middleware) lets the bid page render in-frame,
keeping the branded URL. On a direct domain it's a plain same-origin nav. Either
way ?bid survives.

Verified: tenant page emits href="/?bid=<dn>"; /?bid=<dn> renders BidPage;
CSP on /?bid=<dn> includes the domain so it frames in-place.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

@ralyodio
ralyodio merged commit 35bdce2 into master Jul 10, 2026
2 checks passed
@ralyodio
ralyodio deleted the fix/bid-link-relative branch July 10, 2026 13:47
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.

1 participant