refactor: replace fixed sleeps with deterministic polling in ws proxy tests; document CORS permissiveness

This commit is contained in:
Brian Krabach
2026-03-30 21:56:05 -07:00
parent b1cbeeb02c
commit d0eb91dca7
2 changed files with 34 additions and 7 deletions
+5
View File
@@ -252,6 +252,11 @@ app.add_middleware(
password=_auth_password,
)
# CORS: allow_origins=["*"] with allow_credentials=True is intentional for
# self-hosted federation. Starlette reflects the actual Origin header (rather
# than "*") when credentials are requested, so credentialed cross-origin
# requests work correctly. Do not restrict to a fixed origin list without
# first understanding how remote muxplex peers discover and reach each other.
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],