Skip to content

Can XRPC responses be redirects? #1228

Discussion options

You must be logged in to vote

The current version of the XRPC spec doc (https://atproto.com/specs/xrpc) leaves this ambiguous and there is an explicit "Possible Future Change":

An explicit decision about whether HTTP redirects are supported.

Some arguments against: IIRC we disallowed or strongly recommended against redirects in an earlier version. There was also a convention of requiring specifically HTTP 200 from some simple endpoints as a way to check if atproto is supported at all. A common pattern on the open web is having all unknown paths redirect to a home page or something like that: if we allow redirects, we may need some explicit signal that "yes, you are talking to an XRPC endpoint" (eg, an HTTP header).

A…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bnewbold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants