Repository navigation
X: accept local webhook addresses in CRC control mode - #52
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 27, 2026 01:44
This was referenced Nov 27, 2026
Merged
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.
In
webhook_crc_delivery: "control"mode the challenge is held for the test instead of being sent to the address.POST /2/webhookson an https instance (every hosted one) now also accepts anhttpaddress 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).