Skip to content

X: accept local webhook addresses in CRC control mode - #52

Merged
RhysSullivan merged 1 commit into
mainfrom
x-control-webhook-urls
Nov 27, 2026
Merged

RhysSullivan merged 1 commit into
mainfrom
x-control-webhook-urls

Conversation

@RhysSullivan

Copy link
Copy Markdown

In webhook_crc_delivery: "control" mode the challenge is held for the test instead of being sent to the address. POST /2/webhooks on an https instance (every hosted one) now also accepts an http address or one with a port in that mode, so a test can register a local receiver, subscribe it and preview its deliveries. The manifest lists it as an emulator-only relaxation of X's rule. DM deliveries to such an address are still attempted and recorded, as before; from a hosted instance a local address is unreachable, and the preview gives the exact request.

Outbound mode keeps X's rule: https, no port, at most 200 characters.

Tests: one per mode on an https instance (webhooks-media.test.ts).

In control mode the challenge is held for the test rather than sent to the
address, so POST /2/webhooks on an https (hosted) instance now also accepts
an http address or one with a port, letting a test register a local
receiver, subscribe it and preview its deliveries. The manifest lists it as
an emulator-only relaxation of X's rule. Outbound mode keeps X's rule:
https, no port, at most 200 characters.
@RhysSullivan
RhysSullivan marked this pull request as ready for review November 27, 2026 01:44
@RhysSullivan
RhysSullivan merged commit cea1f5a into main Nov 27, 2026
1 check 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.

1 participant